Commit graph

1137 commits

Author SHA1 Message Date
Alexey Orlenko
2f704e538c fix(prisma): highlight "type" keyword 2022-03-24 09:43:33 +01:00
Pedro Castro
e775d0331e injections(r): add comment 2022-03-19 22:44:43 +01:00
Daniel Woznicki
b1380560a0 Added fix for incorrect CSS indent after closing bracket
Added a failing test for possible broken CSS syntax tree
2022-03-19 12:29:36 +01:00
Wilman Barrios
fd92e70c69 highlights(php): argument name as parameter 2022-03-17 21:09:15 +01:00
Addison Chan
2dfe7a5839 Add Cooklang 2022-03-17 08:40:34 +01:00
Stephan Seitz
4fa30b5249 highlights(bash): add operators ">>", "<<" 2022-03-16 15:05:03 +01:00
Omar Zeghouani
44bf2b7fac highlight(fish): dollar command substitution 2022-03-16 13:11:23 +01:00
Gustaf Lindstedt
01150f50e7 Highlight markdown uri_autolink as @text.uri 2022-03-14 21:34:15 +01:00
Harry Gallagher
a0c0269cbf properly bind function names to the parent scope 2022-03-12 23:03:16 +01:00
Christian Clason
6ece0ca4e6 fix(lua): restore precedence for @variable.builtin and @constant.builtin 2022-03-12 23:00:08 +01:00
Nick Pezza
cd421899a8 Add more indentations 2022-03-12 17:57:00 +01:00
Nick Pezza
6a56be08e1 Dedent on end in ruby files
Fixes #2554
2022-03-12 17:57:00 +01:00
Stephan Seitz
f301caffc5 highlights(rust): highlight as in <Struct as Trait>::Type 2022-03-11 19:07:11 +01:00
YongJieYongJie
fc0b881f93 Refactor solidity highlights.scm further
- Instead of @keyword, use @conditional, @exception, @return, @function
  as appropriate
- Standardize to using @field (instead of @property)for struct members
2022-03-11 19:06:39 +01:00
YongJieYongJie
8f3991065d Refactor solidity highlights.scm
- Use more specific/appropriate captures; change invalid captures
- Don't highlight punctuations in type names (e.g., the brackets in
  'bytes32[]')
2022-03-11 19:06:39 +01:00
YongJieYongJie
a180859eea Add highlights query for Solidity 2022-03-11 19:06:39 +01:00
Jared Moulton
cc4f373bb4
Add slint parser configuration and queries (#2598)
* Add slint parser

* Mark slint as experimental

* Remove filetype and add slint to the lockfile

* Update queries

* Update varibable.builtin's and repeats

* Update slint true false

* Change export back to keyword

* Change export back to include :)
2022-03-07 23:10:31 +00:00
Mateus Melchiades
cbfa53db22 highlights(vala): Reflect upstream refactor 2022-03-07 15:51:08 +01:00
Fabian Viöl
68c36cc59f highlights(cpp): Add operator cast highlight
See https://en.cppreference.com/w/cpp/language/cast_operator for
reference.
2022-03-02 11:00:01 +01:00
Daniel Woznicki
3d6f2637a2 Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
    /**
    *
    */

    New indentation:
    /**
     *
     */
2022-03-01 21:12:14 +01:00
Daniel Woznicki
d71da4f63e Added catchall (ERROR) @auto rule for Java to at least attempt something reasonable when the tree is in a broken state 2022-03-01 21:12:14 +01:00
Daniel Woznicki
e23f5d48be Modified Java indent rules to stop ignoring block comments because javadoc blocks were defaulting to indent 0 2022-03-01 21:12:14 +01:00
Daniel Woznicki
bf2493f5e1 Added fix for Java interfaces not being indented properly 2022-03-01 21:12:14 +01:00
Arnar Gauti Ingason
202cbc10ad parsers: Add todotxt parser 2022-02-28 22:46:47 +01:00
Christian Clason
4d75800991 fix(gleam): update parser and queries 2022-02-27 18:19:51 +01:00
Christian Clason
b6ebdaeb44 fix(latex): update parser and queries 2022-02-27 12:38:45 +01:00
Wilman Barrios
689a078f91 highlights(php): add namespace aliasing name as type 2022-02-26 16:05:22 +01:00
Munif Tanjim
3ef2c77e13 fix(indent): ecma - parenthesized expression indentation 2022-02-26 15:44:37 +01:00
Munif Tanjim
20168d8e20 fix(indent): ecma - class method indentation 2022-02-26 15:44:11 +01:00
Mateus Melchiades
84e4e0237f highlights(vala): Re-update highlights and lockfile 2022-02-26 15:12:17 +01:00
Daniel Woznicki
18c558fd92 Fixed a bug where indentation was not correct for class/enum bodies that had an annotation 2022-02-25 08:03:43 +01:00
Daniel Woznicki
1b47af43ce Fixed a bug where Java enum body indentation was not correct
Added test for Java enum indentation
2022-02-25 08:03:43 +01:00
Daniel Woznicki
b425a9c813 Added fix for incorrect Java indentation after a closing "}" in a method declaration
Added tests for Java indentation, including one for issue 2571
2022-02-25 00:58:59 +01:00
Paul "LeoNerd" Evans
3533721282 Initial attempt at queries/perl/folds.scm 2022-02-22 14:13:48 +01:00
Paul "LeoNerd" Evans
09ea6ccd1d Add many perl keywords; highlight on those in preference to structural elements 2022-02-22 14:13:48 +01:00
Wilman Barrios
6d44cc06f4 highlights(php): highlight use declaration name as type 2022-02-19 20:00:31 +01:00
Pierrick Guillaume
af71c25edc fix(vim): fix highlight for pattern
Allow pattern to not contain pattern_multi node to be highlighted
2022-02-19 18:26:23 +01:00
Wilman Barrios
c0783485e8 highlights(php): highlight traits names as type 2022-02-19 18:26:05 +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
Connor Lay (Clay)
00dce44780 Gleam highlight tests 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
b62750e328 Gleam indentation tests 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
4a5720332d Highlight Gleam bitstrings 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
49e1805e08 Add Gleam injections 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
da6132ebbe Add Gleam indents 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
ce7aaa6720 Add Gleam folds 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
eb4ccc65e9 Add Gleam locals 2022-02-15 19:01:02 +01:00
Connor Lay (Clay)
4e90279821 Add Gleam highlights 2022-02-15 19:01:02 +01:00
traxys
ca64d8b028
feat: add lalrpop parser (#2524)
LALRPOP is a parser generator for Rust. This only parses the LALRPOP
side of the generator, not the nearly-rust code of the actions.
2022-02-13 16:18:41 +00:00
Stephan Seitz
3fbf280e34 indents(php): don't use aligned_indent for php
Fixes #2497
2022-02-13 12:19:54 +01:00