File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 272272 return "keyword" ;
273273
274274 // A tag-keyword must be followed by whitespace, comment or a closing tag.
275- } else if ( match = stream . match ( / ^ \{ ( [ \ /@ \\ ] ? \w + \? ? ) (? = [ \s \ }] | \/ [ / * ] ) / ) ) {
275+ } else if ( match = stream . match ( / ^ \{ ( [ / @ \\ ] ? \w + \? ? ) (? = $ | [ \s } ] | \/ [ / * ] ) / ) ) {
276276 if ( match [ 1 ] != "/switch" )
277277 state . indent += ( / ^ ( \/ | ( e l s e | e l s e i f | i f e m p t y | c a s e | f a l l b a c k m s g | d e f a u l t ) $ ) / . test ( match [ 1 ] ) && state . tag != "switch" ? 1 : 2 ) * config . indentUnit ;
278278 state . tag = match [ 1 ] ;
Original file line number Diff line number Diff line change 114114
115115 MT ( 'literal-comments' ,
116116 '[keyword {literal}]/* comment */ // comment[keyword {/literal}]' ) ;
117+
118+ MT ( 'highlight-command-at-eol' ,
119+ '[keyword {msg]' ,
120+ ' [keyword }]' ) ;
117121} ) ( ) ;
You can’t perform that action at this time.
0 commit comments