GithubHelp home page GithubHelp logo

Comments (6)

Firestar-Reimu avatar Firestar-Reimu commented on June 23, 2024

I think it is this line

https://github.com/James-Yu/LaTeX-Workshop/blob/ef04d42bb2e13b1381961163672ef8b734703fab/syntax/LaTeX.tmLanguage.json#L816

Change it to:

      "begin": "(?:\\s*)((\\\\)begin)(\\{)((?:array|equation|(?:IEEE)?eqnarray|multline|align|aligned|alignat|flalign|flaligned|flalignat|split|gather|gathered|[\+]*cases|(?:display)?math|[a-zA-Z\+]*matrix|(?:(?:arg)?(?:mini|maxi)))(?:\\*|!)?)(\\})(\\s*\\n)?",

may work.

for example, \begin{nothistypematrix} \end{nothistypematrix} will be highlighted

from vscode-latex-basics.

jlelong avatar jlelong commented on June 23, 2024

There are two issues here

  1. We currently only accept letters and an optional ending * for environments
  2. You expect that the +matrix environment is recognized as a tabular environment, ie & is highlighted as a column separator.

from vscode-latex-basics.

jlelong avatar jlelong commented on June 23, 2024

I think it is this line

https://github.com/James-Yu/LaTeX-Workshop/blob/ef04d42bb2e13b1381961163672ef8b734703fab/syntax/LaTeX.tmLanguage.json#L816

See https://github.com/James-Yu/LaTeX-Workshop/tree/master/syntax#grammars-and-language-configuration-files

from vscode-latex-basics.

Firestar-Reimu avatar Firestar-Reimu commented on June 23, 2024

I changed that line and all syntax highlighting disappeared

2. You expect that the `+matrix` environment is recognized as a tabular environment, ie `&` is highlighted as a column separator.

all +matrixes and +cases should be the same as the envs without +

from vscode-latex-basics.

Firestar-Reimu avatar Firestar-Reimu commented on June 23, 2024

Thanks! @jielong when will the users get this update?

from vscode-latex-basics.

jlelong avatar jlelong commented on June 23, 2024

The fix will be available in the next release of LaTeX-Workshop.

from vscode-latex-basics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.