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
Mateus B. Melchiades
6e29323007
Add missing punctuation in vala's highlight
2022-02-11 18:24:39 +01:00
Mateus Melchiades
ad1bc3577c
Improve Vala syntax highlight
2022-02-11 18:24:39 +01:00
Connor Lay (Clay)
5045086793
Fix Elixir indents to match mix format
2022-02-10 07:24:08 +01:00
Fabian Viöl
4990db79a8
highlights(cpp): Highlight method with nested qualified_identifier
...
so that methods like these are correctly highlighted
```cpp
class A {
class B {
void foo();
};
};
void A::B::foo() {
// ^^^
}
```
This only increases the nesting level by one.
AFAIK abritrary nesting is difficult to do with current queries.
But this nesting is a pretty common case
2022-02-09 21:35:00 +01:00
MDeiml
7e3b06df71
Only allow yaml at start of file
2022-02-09 21:25:31 +01:00
Pierrick Guillaume
c867d483a5
add(vim): add highlight for more keywords
2022-02-08 16:27:40 +01:00
Stephan Seitz
fbcfa7ebee
locals(python): adapt as_pattern to upstream change
2022-02-07 22:36:46 +01:00
Sergio A. Vargas
3914267577
feat(highlights/julia): Add missing highlights ( #2464 )
...
- Add highlights for:
+ command strings
+ abstract type definitions
+ module `end` delimiters
- Distinguish `:` in quotes and ranges (it's already highlighted
differently in ternary expressions).
2022-02-07 22:16:58 +01:00
Zoltán Reegn
d6e6581a25
feat(vim): highlight default parameters
2022-02-07 13:42:34 +01:00
Stephan Seitz
5fd68ba0c2
indents(lua): make ")" `@indent_end
...
Fixes #2476
2022-02-06 20:47:15 +01:00
Stephan Seitz
2caac44720
fix: Allow re-parsing in Python, XFAIL \ indentation test
2022-02-06 19:42:57 +01:00
Stephan Seitz
a14970861c
indents(lua): use (comment) @auto
2022-02-05 18:54:55 +01:00