File tree Expand file tree Collapse file tree 3 files changed +1533
-1038
lines changed Expand file tree Collapse file tree 3 files changed +1533
-1038
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ class MarkdownProcessor
417
417
end
418
418
else if c == '_' then
419
419
if c1 == '_' then
420
- if c0 != ' ' or c2 != ' ' then
420
+ if c0 != ' ' or c2 != ' ' then
421
421
return new TokenStrongUnderscore (loc , pos , c )
422
422
else
423
423
return new TokenEmUnderscore (loc , pos , c )
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ extern_code_char
91
91
;
92
92
extern_code_body = extern_code_char*;
93
93
94
+ id = lowercase letter*;
95
+
94
96
/*****************************************************************************/
95
97
States
96
98
/*****************************************************************************/
@@ -203,16 +205,16 @@ at='@';
203
205
semi=';';
204
206
205
207
classid = uppercase letter*;
206
- id = lowercase letter* ;
208
+ id = id ;
207
209
attrid = '_' lowercase letter*;
208
210
209
211
integer = (number | hex_number | bin_number | oct_number) (('u' prec) | ('i' prec) |);
210
212
float = digit* '.' digit+ | (digit+ | digit* '.' digit+) ('E'|'e') ('+'|'-'|) digit+;
211
- string = '"' str_body '"' | '"' '"' '"' long_str_body lsend1 | ''' ''' ''' long_sstr_body ''' ''' ''';
212
- start_string = '"' str_body '{' | '"' '"' '"' long_str_body lsend2;
213
+ string = id? '"' str_body '"' id? | id? '"' '"' '"' long_str_body lsend1 | id? ''' ''' ''' long_sstr_body ''' ''' ''' id? ;
214
+ start_string = id? '"' str_body '{' | id? '"' '"' '"' long_str_body lsend2;
213
215
mid_string = '}' str_body '{' | '}' '}' '}' long_str_body lsend2;
214
- end_string = '}' str_body '"' | '}' '}' '}' long_str_body lsend1;
215
- char = ( ''' [[any - '''] - '\'] ''') | (''' '\' any ''');
216
+ end_string = '}' str_body '"' id? | '}' '}' '}' long_str_body lsend1 id? ;
217
+ char = id? (( ''' [[any - '''] - '\'] ''') | (''' '\' any ''')) id? ;
216
218
bad_string = ('"'|'}') str_body | '"' '"' '"' long_str_body | ''' ''' ''' long_sstr_body;
217
219
bad_char = ''' '\'? any;
218
220
You can’t perform that action at this time.
0 commit comments