package.json

Wed, 13 May 2020 15:17:53 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Wed, 13 May 2020 15:17:53 -0500
changeset 21
1dc4f331d3d5
parent 16
238c7ce8fd49
child 19
f648b8bc220a
permissions
-rw-r--r--

Failed attempt at injecting token colour customisations

{
    "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": {
            "[latexplus]": {
                "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