aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPEditorTokens.l2
-rw-r--r--Source/SPSQLTokenizer.l2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPEditorTokens.l b/Source/SPEditorTokens.l
index 8a7c317b..e2d3099a 100644
--- a/Source/SPEditorTokens.l
+++ b/Source/SPEditorTokens.l
@@ -80,7 +80,7 @@ keywords (X(OR|509|A)|S(MALLINT|SL|H(OW({s}(E(NGINE(S)?|RRORS)|M(ASTER|UTEX)|BIN
\"([^"\\]|\\(.|[\n\r]))*\"? { return SPT_DOUBLE_QUOTED_TEXT; } /* double quoted strings */
'([^'\\]|\\(.|[\n\r]))*'? { return SPT_SINGLE_QUOTED_TEXT; } /* single quoted strings */
-`[^`]*`? { return SPT_BACKTICK_QUOTED_TEXT; } /* backtick quoted string */
+`(``|[^`])*`? { return SPT_BACKTICK_QUOTED_TEXT; } /* backtick quoted string */
"/*" { BEGIN(comment); return SPT_COMMENT; } /* beginning of a c style comment */
<comment>[^*]* { return SPT_COMMENT; } /* anything except * in a c cmnt */
diff --git a/Source/SPSQLTokenizer.l b/Source/SPSQLTokenizer.l
index b9170edb..f33d373d 100644
--- a/Source/SPSQLTokenizer.l
+++ b/Source/SPSQLTokenizer.l
@@ -63,7 +63,7 @@ compend {s}"end"
\"([^"\\]|\\(.|[\n\r]))*\"? { ; }
'([^'\\]|\\(.|[\n\r]))*'? { ; }
-`[^`]*`? { ; }
+`(``|[^`])*`? { ; }
"/*" { BEGIN(comment); }
<comment>[^*]* { ; }