José Luis Lafuente
470b872d57
parsers: add nickel parser ( #3506 )
...
* parsers: add nickel parser
* Update lua/nvim-treesitter/parsers.lua
Co-authored-by: Christian Clason <christian.clason@uni-due.de>
* Update queries/nickel/highlights.scm
Co-authored-by: Christian Clason <christian.clason@uni-due.de>
* fix queries
* Cleanup (based on @theHamsta review)
Co-authored-by: Christian Clason <christian.clason@uni-due.de>
2022-10-19 23:33:31 +00:00
gbprod
1e4b23c266
feat(diff): add diff parser
...
This commit introduce diff parser.
2022-10-19 16:22:58 -07:00
Munif Tanjim
63d7e456ea
highlights(ecma): add pair_pattern punctuation.delimiter
2022-10-17 14:37:36 -07:00
beardedsakimonkey
e218a862a1
locals(lua): fix directive not applying
...
fixes #3280
2022-10-17 08:21:55 +02:00
Jongwook Choi
1a04759d91
folds(yaml): Fold at the entire node, not at the body.
2022-10-16 16:06:09 -07:00
ObserverOfTime
9b43ab819c
highlights: use @preproc where appropriate
2022-10-15 08:49:01 -07:00
ObserverOfTime
0bfeb5484e
test(gitattributes): add tests for highlights
2022-10-15 08:44:41 -07:00
ObserverOfTime
b945aa0aab
highlights(c): highlight standard streams
2022-10-15 08:12:55 -07:00
ObserverOfTime
90c44df8cb
highlights(rst): disable spell for code blocks
...
injections(rst): add sourcecode directive
2022-10-15 08:12:55 -07:00
ObserverOfTime
c6a81292f7
highlights(dockerfile): add several highlights
2022-10-15 08:12:55 -07:00
ObserverOfTime
b74bd776f2
highlights(bash): add all signal names
2022-10-15 08:12:55 -07:00
ObserverOfTime
d649756f49
highlights(kotlin): add companion keyword
2022-10-15 08:12:55 -07:00
ObserverOfTime
99547308ac
highlights(scss): add function statement
2022-10-15 08:12:55 -07:00
ObserverOfTime
2be75015e8
highlights(typescript): add override keyword
2022-10-15 08:12:55 -07:00
ObserverOfTime
f76a6b6c85
highlights(vim): add some more keywords
2022-10-15 08:12:55 -07:00
Maximilian Muecke
f67fd904b7
highlights(r): add spell
2022-10-15 04:03:45 -07:00
Stephan Seitz
53742779e3
highlights(rust): distinguish between "for" in loops and impl_item
...
Fixes #3641
2022-10-15 04:02:20 -07:00
Christian Clason
9c3a1366bc
feat(viml): update queries
2022-10-15 13:01:35 +02:00
gbprod
82767f3f33
feat(php): add queries for bash injections
...
This commit allows to inject bash syntax into relevant function arguments
and shell expression.
2022-10-12 22:38:03 +02:00
gbprod
3cb46f0c81
feat(php): improve php folds
2022-10-12 22:36:57 +02:00
Fredrik Ekre
ef05f00814
fix(julia): remove highlight query for constants
...
This patch removes the highlight query for constant identifiers based on
capitalization. This led to inconsistent highlighting since e.g. `AA`
would be a regular identifier, but `AAA` a constant. It is indeed true
that some constants are uppercase only identifiers, but there are also
constants which doesn't follow this pattern. Since there are no rules
about this it seems better to not try to guess.
2022-10-12 18:17:21 +02:00
mliszcz
276718c245
highlights(cpp): add alternative operator names
...
These keywords are now supported by the parser.
See: https://github.com/tree-sitter/tree-sitter-cpp/pull/179
2022-10-11 14:37:14 +02:00
gbprod
3096e637c8
fix(php): add indent for enums
2022-10-10 23:01:22 +02:00
Alex Pinkus
14edfee545
feat(swift): sync highlight queries with upstream
...
Upstream highlight queries have added support for Swift regex literals.
This change brings that support to nvim-treesitter.
Also includes some minor reordering of modifiers for logical consistency
(no impact on highlighting behavior).
2022-10-10 23:00:58 +02:00
gbprod
a33858d399
feat(twig): add @spell on comments
2022-10-06 14:23:40 +01:00
gbprod
84e23bd979
Fix php indent for short array declaration
2022-10-06 08:55:11 -04:00
Lampros
dd4e62324a
feat(spell) added spell to html-tags text
2022-10-05 15:56:28 -04:00
Matthias Vogelgesang
f051eb2b26
highlights(proto): highlight optional
...
`optional` came back with protobuf 3.15 as a valid modifier so highlight
it the same way as `repeated`.
2022-10-04 10:09:09 -04:00
gbprod
d8a695a1ac
Introduce twig parser
...
This commit introduce parser, highlights and injections for the
[twig syntax](https://twig.symfony.com )
2022-10-03 10:06:41 +02:00
Christian Clason
5f6f866c86
update vimdoc parser and queries
2022-09-29 08:41:42 +02:00
Stephan Seitz
27cba73df9
indents(wgsl): add indents.scm
2022-09-28 19:25:07 -04:00
Jade Lovelace
aa736f5f36
haskell/highlights: Match pattern as a keyword
...
Sample:
-- | Smart constructor that deduplicates plugins
pattern IdePlugins :: [PluginDescriptor ideState] -> IdePlugins ideState
pattern IdePlugins{ipMap} <- IdePlugins_ (sortOn (Down . pluginPriority) . HashMap.elems -> ipMap) _
where
IdePlugins ipMap = IdePlugins_{ipMap_ = HashMap.fromList $ (pluginId &&& id) <$> ipMap
, lookupCommandProvider = lookupPluginId ipMap
}
2022-09-27 21:38:16 -04:00
ShootingStarDragons
0289160c96
feat(slint): <=> operator
...
Slint have support <=> operator, so add this for highlight,
Next time when lockfile.json is update, then merge this one
Log: slint
2022-09-26 23:55:10 -04:00
Laytan Laats
4303c1af69
highlights(php): add spell
2022-09-26 23:23:21 +01:00
Lewis Russell
37398c7d68
feat(spell): support more languages
2022-09-26 13:47:12 +01:00
Erik Westrup
26105050aa
feat(comment): highlight NOTE as @text.note ( #3537 )
2022-09-23 17:52:00 +00:00
Tobias Frilling
b92535f045
highlights(elvish): Use @function.builtin for operator-like functions
...
Elvish uses prefix notation even for mathematical operators (i.e. `<= 1 2 3 4`), so these should be considered functions.
2022-09-19 17:11:30 +02:00
Nick Friday
ba752cee13
fix(ecma injections): jsdoc match /** */ only
2022-09-15 15:41:18 -07:00
Matthias Queitsch
3aef8d60ae
highlights(sql): remove grouped keyword
2022-09-14 08:22:21 +02:00
Matthias Queitsch
1c384edc57
highlights(sql): removed duplicate keywords, added new keyword, hashing
...
as function.calls
2022-09-14 08:22:21 +02:00
Lewis Russell
2eaf188269
fix(fold): don't include whitespace end regions
...
Some languages that are difficult to parse via Treesitter may
incorrectly include whitespace lines at the end of regions. This can
makes the calculated folds sub-optimal.
To recitfy, use a custom directive (trim), to calculate the range with
the trailing whitespace lines removed. Note this only works if the
region end column is 0.
Also added folds for Make.
2022-09-12 11:49:51 +01:00
Lewis Russell
c836f946a9
highlights(lua): add spell
2022-09-12 11:02:35 +01:00
Gabriele Musco
3c2d63c118
parsers: add blueprint parser
2022-09-12 10:54:58 +01:00
Omar Zeghouani
05a07e6e34
Add spell query
2022-09-11 04:21:53 -07:00
Stephan Seitz
f9d1c68cf9
highlights(solidity): use @function.call/@method.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
d11d35fb61
highlights(hack): use @function.call/@method.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
600ac0f358
highlights(haskell): use @function.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
69d0e942a0
highlights(elvish): use @function.call
2022-09-11 04:16:06 -07:00
Stephan Seitz
730efb4e58
highlights(elvish): use @operator for operators
2022-09-11 04:16:06 -07:00
Stephan Seitz
4b32b75d4d
highlights(fish): use @function.call
2022-09-11 04:16:06 -07:00