diff options
| author | Eric Toombs <not@public.tld> | 2025-05-23 10:00:39 +0300 |
|---|---|---|
| committer | Eric Toombs <not@public.tld> | 2025-05-23 10:00:39 +0300 |
| commit | e4df80c76ebc4589d5de086b59b1e6ba906fd279 (patch) | |
| tree | ddf370cba686c7e9e7da698d944cf5c1bcb85ec7 /rc | |
| parent | d5fc4454551d4d9ee462d1291057a016fbfe3882 (diff) | |
Fixed latex highlighting the rest of the way
I forgot to handle escaped backslashes in \[ and \( blocks.
Diffstat (limited to 'rc')
| -rw-r--r-- | rc/filetype/latex.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index 8c9a7561..7cc63c46 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -40,8 +40,8 @@ add-highlighter shared/latex/content default-region group # This is so that $$math$$ get matched properly. add-highlighter shared/latex/dollar-math region '(?<!\\)(?:\\\\)*\K\$[^$]' '(?<!\\)(\\\\)*\$' fill meta add-highlighter shared/latex/ddollar-math region '(?<!\\)(?:\\\\)*\K\$\$' '(?<!\\)(\\\\)*\$\$' fill meta -add-highlighter shared/latex/bracket-math region '(?<!\\)(?:\\\\)*\K\\\[' '\\\]' fill meta -add-highlighter shared/latex/paren-math region '(?<!\\)(?:\\\\)*\K\\\(' '\\\)' fill meta +add-highlighter shared/latex/bracket-math region '(?<!\\)(?:\\\\)*\K\\\[' '(?<!\\)(\\\\)*\\\]' fill meta +add-highlighter shared/latex/paren-math region '(?<!\\)(?:\\\\)*\K\\\(' '(?<!\\)(\\\\)*\\\)' fill meta # Region for control sequence (includes latex2e arguments and options) # starting with unescaped \ and ending : |
