mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 18:43:28 +00:00
Add a $CtrlSym group to the latex language (#12919)
GitOrigin-RevId: 4ee8ba7fe85f37dbe4cab04dae699b2a66007a2d
This commit is contained in:
parent
959e6a73d8
commit
0fba9dc374
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ export const LaTeXLanguage = LRLanguage.define({
|
||||||
Tokens.ctrlSym.includes(type.name)
|
Tokens.ctrlSym.includes(type.name)
|
||||||
) {
|
) {
|
||||||
types.push('$CtrlSeq')
|
types.push('$CtrlSeq')
|
||||||
|
if (Tokens.ctrlSym.includes(type.name)) {
|
||||||
|
types.push('$CtrlSym')
|
||||||
|
}
|
||||||
} else if (Tokens.envName.includes(type.name)) {
|
} else if (Tokens.envName.includes(type.name)) {
|
||||||
types.push('$EnvName')
|
types.push('$EnvName')
|
||||||
} else if (type.name.endsWith('Argument')) {
|
} else if (type.name.endsWith('Argument')) {
|
||||||
|
|
Loading…
Reference in a new issue