package.json

Thu, 14 May 2020 09:55:49 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 14 May 2020 09:55:49 -0500
changeset 22
24bbbfc71c1b
parent 21
1dc4f331d3d5
child 23
6ec219fa34fc
permissions
-rw-r--r--

No language filter in `editor.tokenColorCustomizations`.
(https://github.com/microsoft/vscode/issues/97753#issuecomment-628490844)
Still doesn't work injecting them, though.

{
    "name": "latex-syntax",
    "displayName": "latex-syntax",
    "description": "Rich LaTeX syntax highlighting (for use with Texlab)",
    "version": "0.0.5",
    "publisher": "vomout",
    "license": "MIT",
    "homepage": "https://tuomov.iki.fi/software/",
    "repository": {
      "type": "mercurial",
      "url": "https://tuomov.iki.fi/repos/latex-syntax/"
    },
    "engines": {
        "vscode": "^1.45.0"
    },
    "categories": [
        "Programming Languages"
    ],
    "keywords": [
        "latex",
        "tex",
        "bibtex"
    ],
    "contributes": {
        "languages": [
            {
                "id": "tex",
                "aliases": [
                    "TeX",
                    "texplus"
                ],
                "extensions": [
                    ".sty",
                    ".cls"
                ],
                "configuration": "./languages/tex.json"
            },
            {
                "id": "latex",
                "aliases": [
                    "LaTeX+",
                    "latexplus"
                ],
                "extensions": [
                    ".tex"
                ],
                "configuration": "./languages/latex.json"
            }
        ],
        "grammars": [
            {
                "language": "tex",
                "scopeName": "text.tex",
                "path": "./syntaxes/TeX.tmLanguage.json"
            },
            {
                "language": "latex",
                "scopeName": "text.tex.latex",
                "path": "./syntaxes/LaTeX.tmLanguage.json",
                "embeddedLanguages": {
                    "source.asymptote": "asymptote",
                    "source.cpp": "cpp",
                    "source.css": "css",
                    "source.dot": "dot",
                    "source.gnuplot": "gnuplot",
                    "text.html": "html",
                    "source.java": "java",
                    "source.js": "js",
                    "source.lua": "lua",
                    "source.python": "python",
                    "source.scala": "scala",
                    "text.xtml": "xtml",
                    "source.yaml": "yaml"
                }
            },
            {
                "scopeName": "markdown.latex.codeblock",
                "path": "./syntax/latexblock.json",
                "injectTo": [
                    "text.html.markdown"
                ],
                "embeddedLanguages": {
                    "meta.embedded.block.latex": "latex"
                }
            }
        ],
        "configurationDefaults": {
            "editor.tokenColorCustomizations": {
                "textMateRules": [
                    {
                        "scope": "entity.name.todo.latex",
                        "settings": {
                            "foreground": "#d17000",
                            "fontStyle": "italic"
                        }
                    },
                    {
                        "scope": "support.function.todo.latex",
                        "settings": {
                            "foreground": "#d17000",
                            "fontStyle": "italic"
                        }
                    },
                    {
                        "scope": "entity.name.footnote.latex",
                        "settings": {
                            "foreground": "#e28000",
                            "fontStyle": "italic"
                        }
                    },
                    {
                        "scope": "support.function.footnote.latex",
                        "settings": {
                            "foreground": "#e28000",
                            "fontStyle": "italic"
                        }
                    }
                ]
            }
        }
    }
}

mercurial