You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lexer returns a call or mixin token with args args can be null or string
In the above example: "'my-list', 1, 2, 3, 4"
Now I tried to split this by , (prettier/plugin-pug#66 (comment))
But the problem is, that it also can contain json that has by itself commas
And that breaks my formatter :(
So I need a string[] instead
['my-list', 1, 2, 3, 4]
The text was updated successfully, but these errors were encountered:
Shinigami92
changed the title
[FEATURE] Lexer: Return string[] instead of string
[FEATURE] Lexer: Return call/mixin args string[] instead of string
Feb 9, 2020
Pug Lexer Version:
~4.1.0
- package.json#L31Node Version: v13
Input Pug
The lexer returns a
call
ormixin
token withargs
args
can benull
orstring
In the above example:
"'my-list', 1, 2, 3, 4"
Now I tried to split this by
,
(prettier/plugin-pug#66 (comment))But the problem is, that it also can contain json that has by itself commas
And that breaks my formatter :(
So I need a
string[]
instead['my-list', 1, 2, 3, 4]
The text was updated successfully, but these errors were encountered: