Skip to content
Snippets Groups Projects
Commit 01d6134a authored by Lukas Stadler's avatar Lukas Stadler
Browse files

[GR-5669] Allow greek symbols in identifiers.

PullRequest: fastr/1115
parents 1777ba1a d4a0d54a
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ public class ParserGeneration { ...@@ -93,6 +93,7 @@ public class ParserGeneration {
"support for file delimiter", "support for file delimiter",
"pass along TruffleRLanguage", "pass along TruffleRLanguage",
"convert line endings", "convert line endings",
"handle four and more dots as identifier" "handle four and more dots as identifier",
"allow greek characters in identifiers"
}; };
} }
...@@ -767,7 +767,7 @@ fragment OP_NAME ...@@ -767,7 +767,7 @@ fragment OP_NAME
| ('*'|'/'|'+'|'-'|'>'|'<'|'='|'|'|'&'|':'|'^'|'.'|'~'|','|'?') | ('*'|'/'|'+'|'-'|'>'|'<'|'='|'|'|'&'|':'|'^'|'.'|'~'|','|'?')
; ;
fragment ID_NAME : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'.')* ; fragment ID_NAME : ('a'..'z'|'A'..'Z'|'α'..'ω'|'Α'..'Ω'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'α'..'ω'|'Α'..'Ω'|'_'|'.')* ;
fragment ESC_SEQ fragment ESC_SEQ
: '\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'`'|'\\'|' '|'a'|'v') : '\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'`'|'\\'|' '|'a'|'v')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment