Commit graph

1379 commits

Author SHA1 Message Date
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
Stephan Seitz
b2e0472a55 highlights(clojure): use @function.call 2022-09-11 04:16:06 -07:00
Stephan Seitz
e7fe083fbc highlights(clojure): out-comment TODO query 2022-09-11 04:16:06 -07:00
Stephan Seitz
b866165732 highlights(wgsl): use @function.call 2022-09-11 04:16:06 -07:00
Stephan Seitz
f66a911a95 highlights(ecma): use @method.call/function.call 2022-09-11 04:16:06 -07:00
Stephan Seitz
c557c68729 highlights(c_sharp): use @method.call 2022-09-11 04:16:06 -07:00
Stephan Seitz
f53a5a6471 highlights(hlsl): add more reserved modifiers 2022-09-10 13:03:14 -07:00
Stephan Seitz
3f6845d938 highlights(hlsl): add "globallycoherent" 2022-09-10 13:03:14 -07:00
Stephan Seitz
7a3ecabf56 highlights(css): fix property highlighting
Apply fix as suggested by https://github.com/binhtran432k

Fixes #3395

Co-authored-by: Trần Đức Bình <binhtran432k@users.noreply.github.com>
2022-09-10 13:02:07 -07:00
Stephan Seitz
00b4ef5759 indents(ecma): make "]" @indent_end
Fixes #3382
2022-09-10 12:59:21 -07:00
Guillaume Bouchard
82f48cfe75 Add @spell directives for haskell 2022-09-10 11:18:18 -07:00
Cezary Drożak
f2d3d509d9 feat: add jsonnet 2022-09-10 11:09:10 -07:00
przepompownia
72d61cd9fa highlights(phpdoc): check spell within text 2022-09-10 11:08:04 -07:00
Cameron
8961b598dc Add global variable highlighting 2022-09-10 11:07:45 -07:00
ObserverOfTime
721251dbfc feat: add tree-sitter-gitattributes 2022-09-09 09:46:54 +02:00
derekstride
612af3061d highlights(sql): missing keyword & marginalia 2022-09-08 21:13:17 +02:00
Matthias Queitsch
5b4fd6ba00 removed duplicated kw, start capturing subtree earlier 2022-09-08 17:44:21 +02:00
Matthias Queitsch
72eac1deeb change table_expression -> table_reference 2022-09-08 17:44:21 +02:00
Ananda Umamil
9b13872f19 highlights(meson): delimiter and operatorunit 2022-09-08 03:42:59 -07:00
Christian Clason
e58b7f9950 feat(viml): bump parser and queries 2022-09-08 01:24:39 +02:00
Lewis Russell
2a63ea5665 feat(spell): upstream spell queries from spellsitter 2022-09-06 12:44:19 +01:00
Martin Pépin
82036f8db8 Add support for menhir (OCaml parser generator) 2022-09-05 14:48:58 -07:00
Alex Pinkus
98d5fe400c highlights(swift): fix for_statement variable declaration
Incorporates a fix from upstream, caught due to the emacs tree-sitter
plugin using an older version of tree-sitter that does stricter
validation.
2022-09-05 21:16:04 +02:00