Lines 130-135
CodeMirror.defineMode( 'marc', function( config, modeConfig ) {
Link Here
|
130 |
// matching. |
130 |
// matching. |
131 |
if ( stream.match( /[ \t]+$/ ) ) { |
131 |
if ( stream.match( /[ \t]+$/ ) ) { |
132 |
return 'end-space'; |
132 |
return 'end-space'; |
|
|
133 |
} else if ( stream.match( /\s{2,}/ ) ) { |
134 |
return 'double-space'; |
133 |
} else if ( stream.match( /[^ \t‡]+/ ) || stream.match( /[ \t]+/ ) ) { |
135 |
} else if ( stream.match( /[^ \t‡]+/ ) || stream.match( /[ \t]+/ ) ) { |
134 |
return; |
136 |
return; |
135 |
} |
137 |
} |
Lines 156-161
CodeMirror.defineMode( 'marc', function( config, modeConfig ) {
Link Here
|
156 |
// Match space at end of line |
158 |
// Match space at end of line |
157 |
if ( stream.match( /[ \t]+$/ ) ) { |
159 |
if ( stream.match( /[ \t]+$/ ) ) { |
158 |
return 'end-space'; |
160 |
return 'end-space'; |
|
|
161 |
} else if ( stream.match( /\s{2,}/ ) ) { |
162 |
return 'double-space'; |
159 |
} else { |
163 |
} else { |
160 |
stream.match( /[ \t]+/ ); |
164 |
stream.match( /[ \t]+/ ); |
161 |
} |
165 |
} |