It does not in the end seem possible to have a separate “LaTeX+” language

Wed, 13 May 2020 16:12:56 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Wed, 13 May 2020 16:12:56 -0500
changeset 15
a65b8c098aa6
parent 12
f7b4c7352467
child 16
238c7ce8fd49

It does not in the end seem possible to have a separate “LaTeX+” language
for syntax highlighting while being able to use texlab. So don't try to
provide an alternative. Hopefully this works without conflicts…

README.md file | annotate | diff | comparison | revisions
package.json file | annotate | diff | comparison | revisions
--- a/README.md	Wed May 13 15:41:41 2020 -0500
+++ b/README.md	Wed May 13 16:12:56 2020 -0500
@@ -17,11 +17,6 @@
 The highlighting of todo-notes and footnotes has to be specifically configured:
 see below.
 
-### How to enable
-
-This package does not override the standard “LaTeX” grammar. It provides the
-“LaTeX+” grammar. Please select that as the default grammar for `.tex` files.
-
 ### Regarding `todonotes` and `footnote` support
 
 Unfortunately, VSCode does not appear to let extensions contribute token colours
--- a/package.json	Wed May 13 15:41:41 2020 -0500
+++ b/package.json	Wed May 13 16:12:56 2020 -0500
@@ -24,9 +24,9 @@
     "contributes": {
         "languages": [
             {
-                "id": "texplus",
+                "id": "tex",
                 "aliases": [
-                    "TeX+",
+                    "TeX",
                     "texplus"
                 ],
                 "extensions": [
@@ -36,7 +36,7 @@
                 "configuration": "./languages/tex.json"
             },
             {
-                "id": "latexplus",
+                "id": "latex",
                 "aliases": [
                     "LaTeX+",
                     "latexplus"
@@ -49,12 +49,12 @@
         ],
         "grammars": [
             {
-                "language": "texplus",
+                "language": "tex",
                 "scopeName": "text.tex",
                 "path": "./syntaxes/TeX.tmLanguage.json"
             },
             {
-                "language": "latexplus",
+                "language": "latex",
                 "scopeName": "text.tex.latex",
                 "path": "./syntaxes/LaTeX.tmLanguage.json",
                 "embeddedLanguages": {
@@ -80,7 +80,7 @@
                     "text.html.markdown"
                 ],
                 "embeddedLanguages": {
-                    "meta.embedded.block.latex": "latexplus"
+                    "meta.embedded.block.latex": "latex"
                 }
             }
         ]

mercurial