Sergio Alejandro Vargas
9446ff4aa4
highlights(c): make sizeof a keyword.operator
2021-09-01 07:07:16 +02:00
Sergio Alejandro Vargas
a5f62c5764
highlights(lua): Add Lua 5.1 built-in functions
2021-09-01 07:07:16 +02:00
Wilman Barrios
6cd6a29213
Fix method access using php nullsafe operator ( #1773 )
2021-08-30 22:06:09 -05:00
Joaquín León
45610f18a3
Reorder json5 queries
2021-08-30 11:42:41 +02:00
Andrew Helwer
b89192b3dc
@number -> @keyword
2021-08-30 07:35:12 +02:00
Andrew Helwer
2d1e142451
Updated highlight queries for tlaplus
2021-08-30 07:35:12 +02:00
leo60228
93f415029d
Add tree-sitter-pioasm with highlights and injections ( #1759 )
...
* add tree-sitter-pioasm with highlights and injections
* [docgen] Update README.md
skip-checks: true
* remove ada injection from pioasm
* address review
* remove unnecessary python predicate
Co-authored-by: Github Actions <actions@github>
2021-08-29 12:10:15 -05:00
Stevan Milic
a90e5f4c5f
update scala highlights ( #1760 )
...
* add type highlights
* add call expression highlights
* add function definition highlights
* add expression highlights
* add literals highlights
* add operator highlights
* add punctuation highlights
* add comment highlights
Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
2021-08-28 14:07:44 -05:00
Wilman Barrios
1e4c846d01
highlights(php): add missings operators ?-> and => ( #1729 )
...
This will:
- add nullsafe `?->` as `@operator`
- add separator for associative arrays `=>` as `@operator`
2021-08-26 12:15:09 -05:00
Thomas Vigouroux
5549058779
feat(vim): highlight highlight_statement correctly
...
Fixes #1747
2021-08-26 09:55:32 +02:00
Stuart Mashaal
4f2265632b
add keywords to scala highlights ( #1662 )
...
* add keywords to scala highlights
* special capture for special keywords
* add while to 'repeat' capture
* pr cleanup, exmaples in CONTRIBUTING.md
* add backquotes for consistency in docs
* group @repeat keywords, fix null
* comment-out 'macro' and 'forSome'
* fix 'this' and 'super' keyword
* remove accidental files 🤦
* update revision
* fix "super" and "this"
* godammit these .metals files are killing me
* why did I commit this???
Co-authored-by: Stuart Mashaal <smashaal@hopper.com>
2021-08-25 18:38:45 -05:00
Joakker
d8595fb923
Add support for json5
2021-08-25 15:13:00 +02:00
maxxnino
cbc42914bf
highlight(zig) highlight all caps is a constant
...
* in some context, like translate c macro
* which is use all CAPS for define constant
2021-08-24 08:35:15 +02:00
Santos Gallegos
79a0230dbd
Viml: update queries
2021-08-23 09:23:15 +02:00
maxxnino
2f73d7c0a8
highlight(zig): rework query
...
* improve query performance 120ms -> 6ms
* correct highlight for field, type and function
* add highlight for escape/format sequence in string
2021-08-23 08:15:07 +02:00
Wilman Barrios
af96150a2d
highlights(php): add instanceof as @keyword ( #1728 )
2021-08-21 05:05:01 +00:00
Andrew Helwer
ca0a7f5a8d
Highlight some keyword.function nodes as just keywords
2021-08-20 18:56:14 +02:00
Andrew Helwer
da2336ea80
Added TLA+ grammar & queries
2021-08-20 18:56:14 +02:00
Thomas Vigouroux
fb3a7a8bcc
feat(vim): support augroups
2021-08-20 14:51:13 +02:00
Thomas Vigouroux
43c70a73e7
fix(viml): update and support mappings
2021-08-20 10:22:01 +02:00
Aleksei Abakumkin
0336fd8834
Remove redunant capture.
2021-08-18 22:00:31 +02:00
Aleksei Abakumkin
0259291e4a
Update CSharp highlights.
2021-08-18 22:00:31 +02:00
Clay
7e82ea4e7b
Disable combined injections for HEEx
2021-08-18 14:07:59 +02:00
Clay
92fe58ca83
Add doctype highlights
2021-08-18 14:07:59 +02:00
Clay
caf14b70ea
Update surface version, fix highlights
2021-08-18 14:07:59 +02:00
Clay
57c2081e3f
Add HEEx language support, add missing commentstrings
2021-08-18 14:07:59 +02:00
Sergio Alejandro Vargas
a1be6c9d4f
highlights(lua): Add semicolons
2021-08-17 10:18:33 +02:00
Thomas Vigouroux
344b36866b
fix(vim): highlight more punctuation
2021-08-16 21:31:22 +02:00
Thomas Vigouroux
f2076b267e
feat: add support for vim
2021-08-16 15:09:53 +02:00
Santos Gallegos
460a26ef32
Lua: highlight uppercase variables as constants ( #1690 )
2021-08-14 13:33:55 -05:00
jpe90
39a53ffbbc
Add comment highlighting for keywords in Haskell ( #1695 )
...
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-08-14 18:27:05 +00:00
Santos Gallegos
8d6c804f3f
Query: update locals ( #1692 )
2021-08-14 00:26:31 -05:00
Santos Gallegos
ef85abba7f
Query: highlight numbers
2021-08-14 01:32:11 +02:00
Connor Lay (Clay)
d06ab28766
Fix: Improve Elixir highlighting performance ( #1682 )
2021-08-13 12:09:16 -05:00
maxxnino
2dd36fa585
highlights(zig): label, switch item, operator, punctuation, field property ( #1685 )
...
Co-authored-by: maxxnino <idonthaveemail@dontknow.com>
2021-08-12 23:36:01 -05:00
delphinus
2156a55efa
Enable to highlight shebang on JS/TS
2021-08-12 08:47:22 +02:00
maxxnino
53160520e2
Update new query and parser for zig
2021-08-11 08:16:16 +02:00
Yorick Peterse
3fd4d9fb3f
Fix instance and singleton method locals for Ruby
...
Ruby singleton methods (`def x.y ... end`) weren't covered in the list
of locals. In addition, instance methods didn't support names that are
capitalised (`def Integer ... end`).
This commit ensures that both instance and singleton methods are
supported, and that both support identifiers and constants as their
names. This ensures that all following examples are covered:
def foo; end
def FOO; end
def self.bar; end
def self.BAR; end
2021-08-09 08:38:02 +02:00
Santos Gallegos
9a98ed1f96
RST: use any-of? instead of match? ( #1678 )
2021-08-08 12:37:08 -05:00
Santos Gallegos
1e8016d92d
RST: add code-block to injections ( #1677 )
...
This isn't part of the rst spec,
but it's common enough on third party libs (sphinx specially).
2021-08-08 11:16:11 -05:00
Luxed
d8d5e4eb81
fix(c_sharp): Improve highlights
2021-08-06 11:08:30 +02:00
Luxed
e56a393c4b
feat(c_sharp): Simplify folds by only folding blocks of code instead of
...
folding the methods and their attributes
2021-08-06 11:08:30 +02:00
Luxed
3110e0f7cd
feat(c_sharp): Add first draft of locals
2021-08-06 11:08:30 +02:00
maxxnino
d5116feefd
highlights(zig): function return type, var decl type
2021-08-04 11:07:59 +02:00
maxxnino
cb5059e68f
highlights(zig): highlight enum,union,error and custom number type
...
* highlight enum field as a constant
* highlight cImport and constructor
* highlight else_switch
enum constant
2021-08-04 11:07:59 +02:00
Sergio Alejandro Vargas
50a77bbc22
highlights(lua): Organize function_call queries
2021-08-02 15:52:56 +02:00
Sergio Alejandro Vargas
0ed69e50a8
highlights(lua): Fix method calls
...
The usual `function_call` query would highlight the objects at the
beginning of a method call. The `method` query has to account for this,
and highlight the identifier as a variable again.
2021-08-02 15:52:56 +02:00
Stephan Seitz
f96c409e3d
Update teal highlights
2021-08-02 15:20:07 +02:00
Connor Lay (Clay)
6944173e87
Feature: Add Surface language and integrate with Elixir ( #1645 )
...
* Add initial surface highlights & injections
* Additional surface highlights
* Filetype detection, fix injections
* Fix Elixir function highlight when left is an identifier
* Add surface parser
* Fix comment highlights
* Surface folds, indents, better highlights
* Highlight surface components & directives
* Restore comments Elixir injections
2021-08-01 19:09:41 +00:00
leo60228
1a4b5da758
Indent C compound_literal_expression
2021-08-01 11:01:47 +02:00