diff options
| author | Éric BURGHARD <eric.burghard@itsufficient.me> | 2022-06-26 21:55:01 +0200 |
|---|---|---|
| committer | Éric BURGHARD <eric.burghard@itsufficient.me> | 2022-06-26 21:55:01 +0200 |
| commit | 897e8d6aa3bbdff7f86c2e8d8d9681d24cd3c4fd (patch) | |
| tree | cddd404631c47c2c821075799515e3f5694f24ec | |
| parent | 1c8bd551dbcf04227c22227d5893fed57d5beadd (diff) | |
fix: proper escaping for math mode
| -rw-r--r-- | rc/filetype/latex.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak index 46bdf046..3c110ce7 100644 --- a/rc/filetype/latex.kak +++ b/rc/filetype/latex.kak @@ -70,7 +70,7 @@ add-highlighter shared/latex/content/ regex '(?<!\\)(?:\\\\)*\K#+[1-9]' 0:string add-highlighter shared/latex/content/ regex '(?<!\\)(?:\\\\)*\K\{([\s/;,\w\d]+)\}' 1:string # Math mode between dollar signs/pairs -add-highlighter shared/latex/content/ regex '((?<!\\)\$(\\\$|[^$])+\$)|((?<!\\)\$\$(\\\$|[^$])+\$\$)|((?<!\\)\\\[.*?\\\])|(\\\(.*?\\\))' 0:meta +add-highlighter shared/latex/content/ regex '((?<!\\)(?:\\\\)*\K\$(\\\$|[^$])+\$)|((?<!\\)(?:\\\\)*\K\$\$(\\\$|[^$])+\$\$)|((?<!\\)(?:\\\\)*\K\\\[.*?\\\])|(\\\(.*?\\\))' 0:meta # Indent # ------ |
