mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-18 08:40:33 +00:00
Merge "Fix highlighting of table headers on single text row"
This commit is contained in:
commit
b7a201e2f0
|
@ -579,7 +579,7 @@
|
||||||
return inTable( stream, state );
|
return inTable( stream, state );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( stream.match( /[^'|{[<&~]+/ ) ) {
|
if ( stream.match( /[^'|{[<&~!]+/ ) ) {
|
||||||
return makeStyle( ( isHead ? 'strong' : '' ), state );
|
return makeStyle( ( isHead ? 'strong' : '' ), state );
|
||||||
}
|
}
|
||||||
if ( stream.match( '||' ) || isHead && stream.match( '!!' ) || ( isStart && stream.eat( '|' ) ) ) {
|
if ( stream.match( '||' ) || isHead && stream.match( '!!' ) || ( isStart && stream.eat( '|' ) ) ) {
|
||||||
|
|
Loading…
Reference in a new issue