summaryrefslogtreecommitdiff
path: root/python/rest/src/com/jetbrains/rest/lexer/rest.flex
diff options
context:
space:
mode:
Diffstat (limited to 'python/rest/src/com/jetbrains/rest/lexer/rest.flex')
-rw-r--r--python/rest/src/com/jetbrains/rest/lexer/rest.flex2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rest/src/com/jetbrains/rest/lexer/rest.flex b/python/rest/src/com/jetbrains/rest/lexer/rest.flex
index ee0b33108d4e..354779fcc48a 100644
--- a/python/rest/src/com/jetbrains/rest/lexer/rest.flex
+++ b/python/rest/src/com/jetbrains/rest/lexer/rest.flex
@@ -170,7 +170,7 @@ ANY= .|\n
{USUAL_TYPES}"::" { yybegin(IN_VALUE); return DIRECTIVE;}
{HIGHLIGHT_TYPES}"::" { yybegin(IN_HIGHLIGHT); return CUSTOM_DIRECTIVE;}
[0-9A-Za-z\-:]*"::" { yybegin(IN_VALUE); return CUSTOM_DIRECTIVE;}
-"|"[0-9A-Za-z]*"|" { return SUBSTITUTION;}
+"|"[0-9A-Za-z_]*"|" { return SUBSTITUTION;}
[0-9A-Za-z_\[|.]* { yybegin(IN_COMMENT); return COMMENT;}
{CRLF}{2} { yybegin(INIT); return COMMENT;}
{SPACE}*{CRLF}+ { return WHITESPACE; }