We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent e48a6f6 commit 0a7facbCopy full SHA for 0a7facb
src/core/qgsexpressionlexer.ll
@@ -95,6 +95,8 @@ static QLocale cLocale("C");
95
96
%}
97
98
+%s IN_COMMENT
99
+
100
white [ \t\r\n]+
101
102
non_ascii [\x80-\xFF]
@@ -117,6 +119,16 @@ string "'"{str_char}*"'"
117
119
118
120
%%
121
122
+<INITIAL>{
123
+ "/*" BEGIN(IN_COMMENT);
124
+}
125
+<IN_COMMENT>{
126
+ "*/" BEGIN(INITIAL);
127
+ [^*\n]+ // eat comment in chunks
128
+ "*" // eat the lone star
129
+ \n yylineno++;
130
131
132
"NOT" { U_OP(uoNot); return NOT; }
133
"AND" { B_OP(boAnd); return AND; }
134
"OR" { B_OP(boOr); return OR; }
@@ -185,4 +197,5 @@ string "'"{str_char}*"'"
185
197
186
198
. { return Unknown_CHARACTER; }
187
199
200
188
201
0 commit comments