Comments (6)
I think it is this line
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.
There are two issues here
- We currently only accept letters and an optional ending
*
for environments - You expect that the
+matrix
environment is recognized as a tabular environment, ie&
is highlighted as a column separator.
from vscode-latex-basics.
I think it is this line
https://github.com/James-Yu/LaTeX-Workshop/blob/ef04d42bb2e13b1381961163672ef8b734703fab/syntax/LaTeX.tmLanguage.json#L816
from vscode-latex-basics.
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.
Thanks! @jielong when will the users get this update?
from vscode-latex-basics.
The fix will be available in the next release of LaTeX-Workshop.
from vscode-latex-basics.
Related Issues (20)
- BibTeX syntax: "%" is not a comment character HOT 5
- Incorrect match for punctuation.definition.string.begin.latex
- Nested \( \) Highlight HOT 3
- Syntax highlighting broken after German quotation marks HOT 2
- Incorrect syntax highlighting for command \hyperref[]{}
- Syntax bug when quotations mixed with comments or math HOT 2
- Non-existent `\merge` is highlighted the same as `\alpha` in math mode HOT 4
- Useless `"patterns"` array HOT 1
- Treat highlighting for terminal and minted equally
- Missing math scope in hyperref HOT 4
- [Feature request] highlight `iffalse` block as a comment HOT 2
- Syntax highlghting for robust-extrenalize
- Add support for `\directlua` / `ludirect`
- LaTeX and TeX highlighted incorrectly in Markdown HOT 2
- LaTeX3/expl3 syntax highlight fails in environments HOT 10
- environments cause erroneous syntax highlighting in dtx file HOT 3
- Refactoring grammar development HOT 1
- expl3 functions whose names start with underscore are not highlighted correctly HOT 9
- Add the same color syntax highlighting to zref/zlabel provided by zref as ref/label
- Variables in the cctab module are not highlighted HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-latex-basics.