File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
HydraScript.Domain.Constants
HydraScript.Domain.FrontEnd/Parser
tests/HydraScript.UnitTests/Domain/FrontEnd Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static IEnumerable<Dto> Stream
2626
2727 yield return new (
2828 Tag : "Ident" ,
29- Pattern : "[a-zA-Z][a-zA-Z0-9 ]*" ,
29+ Pattern : "[a-zA-Z][a-zA-Z0-9_ ]*" ,
3030 Priority : 50 ) ;
3131
3232 yield return new (
@@ -69,7 +69,7 @@ public static IEnumerable<Dto> Stream
6969
7070 yield return new (
7171 Tag : "Operator" ,
72- Pattern : "[+]{1,2}|[-]|[*]|[/]|[%]|([!]|[=])[=]|([<]|[>])[=]?|[!]|[|]{2}|[&]{2}|[~]|[:]{2}" ,
72+ Pattern : "[+]{1,2}|[-]|[*]|[/]|[%]|([!]|[=])[=]|([<]|[>])[=]?|[!]|[|]{2}|[&]{2}|[~]|[:]{2}|[$] " ,
7373 Priority : 13 ) ;
7474
7575 yield return new (
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ EqExpression -> RelExpression (('=='|'!=') RelExpression)*
4141RelExpression -> AddExpression (('<'|'>'|'<='|'>=') AddExpression)*
4242AddExpression -> MulExpression (('+'|'-') MulExpression)*
4343MulExpression -> UnaryExpression (('*'|'/'|'%'|'++'|'::') UnaryExpression)*
44- UnaryExpression -> LeftHandSideExpression | ('-'|'!'|'~') UnaryExpression
44+ UnaryExpression -> LeftHandSideExpression | ('-'|'!'|'~'|'$' ) UnaryExpression
4545
4646PrimaryExpression -> "Ident" | Literal | '(' Expression ')' | ObjectLiteral | ArrayLiteral
4747Literal -> "NullLiteral"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public sealed class LexerFailData : TheoryData<string>
1414{
1515 public LexerFailData ( )
1616 {
17- Add ( "a + v $$$ " ) ;
17+ Add ( "a + v ``` " ) ;
1818 Add ( "kkk &" ) ;
1919 Add ( "|| |" ) ;
2020 }
You can’t perform that action at this time.
0 commit comments