File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ CodeMirror.defineMode("sparql", function(config) {
135135 else if ( curPunc == "{" ) pushContext ( state , "}" , stream . column ( ) ) ;
136136 else if ( / [ \] \} \) ] / . test ( curPunc ) ) {
137137 while ( state . context && state . context . type == "pattern" ) popContext ( state ) ;
138- if ( state . context && curPunc == state . context . type ) popContext ( state ) ;
138+ if ( state . context && curPunc == state . context . type ) {
139+ popContext ( state ) ;
140+ if ( curPunc == "}" && state . context && state . context . type == "pattern" )
141+ popContext ( state ) ;
142+ }
139143 }
140144 else if ( curPunc == "." && state . context && state . context . type == "pattern" ) popContext ( state ) ;
141145 else if ( / a t o m | s t r i n g | v a r i a b l e / . test ( style ) && state . context ) {
You can’t perform that action at this time.
0 commit comments