Commit graph

24 commits

Author SHA1 Message Date
Christian Clason
680807fa6a highlights(markup): distinguish heading level in queries
also add a few queries from Helix and remove controversial
code block conceal in Markdown
2023-05-13 16:50:32 +02:00
david-pikas
caa28be705
latex: @nospell for environment names, citations and commands (#3948)
* Added @nospell for environment names and commands

* Added citations to @nospell

Co-authored-by: David Pikas <David.Pikas@iar.com>
2022-12-08 11:01:56 +01:00
ObserverOfTime
9b43ab819c highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
Lewis Russell
2a63ea5665 feat(spell): upstream spell queries from spellsitter 2022-09-06 12:44:19 +01:00
Stephan Seitz
d605120dcc highlights(latex): only highlight command name, not whole command 2022-05-21 13:13:59 +02:00
Christian Clason
db0e519291 latex: capture math env contents 2022-04-15 15:04:29 +02:00
Christian Clason
94f19cad29 latex: update queries
Make use of parser updates
* add `\{re}newenvironment`
* add `\DeclarePairedDelimiter{X}`
* add `\title` and `\author`
* add optional arguments to sectioning commands
* use builtin nodes for math environments
2022-04-14 12:02:20 +02:00
Christian Clason
b6ebdaeb44 fix(latex): update parser and queries 2022-02-27 12:38:45 +01:00
Christian Clason
5e116977e0
fix(latex): update parser and query (#2547) 2022-02-19 11:22:25 +01:00
Christian Clason
3c363ebd26
fix(latex): some highlight query fixes (#2534)
* add \caption to @function
* only highlight contents of curly text groups in references
2022-02-16 17:29:56 +01:00
Christian Clason
8e780a4c9d
refactor(latex): improve queries (#2457) 2022-02-05 16:09:35 +01:00
Stephan Seitz
31e33b0e66 injections(latex): add support for minted language injection 2022-02-04 22:15:47 +01:00
Christian Clason
a80c8bc506
chore(latex)!: update parser and queries (#2436)
BREAKING CHANGE: queries for latex need adaptation
2022-02-04 10:29:46 +00:00
Jendrik Stelzner
31fe7ee4f9 Add a missing LaTeX hightlight.
Add \eqref to the list of referencing commands.
2022-01-13 09:44:03 +01:00
Jendrik Stelzner
41a097d9c5 Add LaTeX highlights: addpart, addchap, addsec.
Add highlight for the LaTeX sectioning commands \addpart, \addchap, \addsec and their starred variants.
2022-01-12 00:41:26 +01:00
Ashish Panigrahi
aba5e9b4d5 feat: add comment highlighting in LaTeX 2021-07-01 10:33:16 +02:00
Stephan Seitz
b09e889e3d highlights(latex): highlight chapter*, section*, part* ...
Fixes #1454
2021-06-30 20:36:02 +02:00
Stephan Seitz
89d464744b highlights(latex): use any-of? 2021-05-17 20:36:33 +02:00
Stephan Seitz
d89d698c26 highlights(latex): add more math environments
Fix #1293
2021-05-17 20:36:33 +02:00
Stephan Seitz
bb2846fd9b highlights(latex): add more commands 2021-05-17 20:36:33 +02:00
Stephan Seitz
efbb1c66d2 highlights(latex): fix regexes with backslashes
https://github.com/neovim/neovim/pull/14382 requires to escape `\` is regexes if they are verbatim `\`

They change in Neovim was incompatible so people that are still behind that revision will have this regex not matching (but it should at least not error)
2021-05-12 01:12:24 +02:00
Stephan Seitz
712cc78a1e Add text.reference and text.environment 2021-03-30 19:26:37 +02:00
Stephan Seitz
0556edf5f3 latex: add TSMath that behaves like vimtex math highlighting 2021-03-30 19:26:37 +02:00
Stephan Seitz
ea8c3b2850 feat: Add Latex basic highlights and folds
Fix #1104
2021-03-30 19:26:37 +02:00