Commit graph

1099 commits

Author SHA1 Message Date
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
Stephan Seitz
693dae241d indens(c): use (comment) @auto 2022-02-05 18:54:55 +01:00
Stephan Seitz
ca06ff0a61 indents(r): fix all R tests 2022-02-05 18:54:55 +01:00
Stephan Seitz
9f25d66f7d indents(go): perform some changes as go fmt dictates 2022-02-05 18:54:55 +01:00
Stephan Seitz
0d1c1efff5 indents(go): fix aligned_indent for parameter_list 2022-02-05 18:54:55 +01:00
Stephan Seitz
b7c72e9992 indents(go): remove function_declaration from indents 2022-02-05 18:54:55 +01:00
Stephan Seitz
992926ab99 indents(php): add another test 2022-02-05 18:54:55 +01:00
Stephan Seitz
1b0a74afa8 indent(lua): ignore comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
dccf0f0cb8 indents(c): indent always after init_declarator 2022-02-05 18:54:55 +01:00
Stephan Seitz
ff96940767 docs: add @zero_indent to CONTRIBUTING.md 2022-02-05 18:54:55 +01:00
Stephan Seitz
eb2b73a5b0 indents(lua): fix comment indentation 2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519 fix(indents): re-parse before each indent 2022-02-05 18:54:55 +01:00
Stephan Seitz
fd5a551d7c indents(c): add zero_indent for #if 2022-02-05 18:54:55 +01:00
Stephan Seitz
616dc885fc indents(c): fix indentation on block comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
346366a330 indents(c): indent at expression_statement 2022-02-05 18:54:55 +01:00
Stephan Seitz
059fbc487c indents: allow aligned_indent for unfinished calls in C and Python 2022-02-05 18:54:55 +01:00
Stephan Seitz
62982378b8 indents(cpp): indent at field_initializer_list 2022-02-05 18:54:55 +01:00
Stephan Seitz
3ff725e654 indents(c): fix ternary 2022-02-05 18:54:55 +01:00
Stephan Seitz
4d552d9fda injections(yaml): inject at command list for Gitlab script 2022-02-05 18:25:35 +01:00
Stephan Seitz
71cfcff510 injections(yaml): injection on Gitlab's before_script/after_script 2022-02-05 18:25:35 +01:00
Christian Clason
8e780a4c9d
refactor(latex): improve queries (#2457) 2022-02-05 16:09:35 +01:00
Uy Ha
c999f9aa13 Rename captures 2022-02-05 00:28:48 +01:00
Uy Ha
2dcfefa9da Improve set queries 2022-02-05 00:28:48 +01:00
Stephan Seitz
31e33b0e66 injections(latex): add support for minted language injection 2022-02-04 22:15:47 +01:00
Munif Tanjim
11e7ee1d91
fix(indent): lua - support @indent_end (#2454) 2022-02-04 22:08:18 +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
Andrew Helwer
b12c10778c
Updated TLA+ version, queries, maintainers (#2442) 2022-02-03 19:12:22 +01:00