Thomas Vigouroux
56fcf55139
feat(vim): highlight highlight_statement correctly
...
Fixes #1747
2021-09-17 21:06:36 +02:00
Stuart Mashaal
88d5356d61
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-09-17 21:06:36 +02:00
Joakker
14e44a2685
Add support for json5
2021-09-17 21:06:36 +02:00
maxxnino
70987d8f84
highlight(zig) highlight all caps is a constant
...
* in some context, like translate c macro
* which is use all CAPS for define constant
2021-09-17 21:06:36 +02:00
Santos Gallegos
e84a8b8f27
Viml: update queries
2021-09-17 21:06:36 +02:00
maxxnino
b52cccf899
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-09-17 21:06:36 +02:00
Wilman Barrios
ec17095e22
highlights(php): add instanceof as @keyword ( #1728 )
2021-09-17 21:06:36 +02:00
Andrew Helwer
7ff6ee6e9d
Highlight some keyword.function nodes as just keywords
2021-09-17 21:06:36 +02:00
Andrew Helwer
5821a85165
Added TLA+ grammar & queries
2021-09-17 21:06:36 +02:00
Thomas Vigouroux
3c940fdfb5
feat(vim): support augroups
2021-09-17 21:06:36 +02:00
Thomas Vigouroux
512e0e6c87
fix(viml): update and support mappings
2021-09-17 21:06:36 +02:00
Aleksei Abakumkin
39ecd66240
Remove redunant capture.
2021-09-17 21:06:36 +02:00
Aleksei Abakumkin
0e4c2c5801
Update CSharp highlights.
2021-09-17 21:06:36 +02:00
Clay
fda30099bf
Disable combined injections for HEEx
2021-09-17 21:06:36 +02:00
Clay
7933e5c6ab
Add doctype highlights
2021-09-17 21:06:36 +02:00
Clay
ca7a682aff
Update surface version, fix highlights
2021-09-17 21:06:36 +02:00
Clay
a9e32d0cc5
Add HEEx language support, add missing commentstrings
2021-09-17 21:06:36 +02:00
Sergio Alejandro Vargas
524faffe63
highlights(lua): Add semicolons
2021-09-17 21:06:36 +02:00
Thomas Vigouroux
5cc225af44
fix(vim): highlight more punctuation
2021-09-17 21:06:36 +02:00
Thomas Vigouroux
1877e03bfa
feat: add support for vim
2021-09-17 21:06:36 +02:00
Santos Gallegos
9c5dd185c4
Lua: highlight uppercase variables as constants ( #1690 )
2021-09-17 21:06:36 +02:00
jpe90
159ca7b35c
Add comment highlighting for keywords in Haskell ( #1695 )
...
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-09-17 21:06:36 +02:00
Santos Gallegos
975e54d067
Query: update locals ( #1692 )
2021-09-17 21:06:36 +02:00
Santos Gallegos
c11800dec1
Query: highlight numbers
2021-09-17 21:06:36 +02:00
Connor Lay (Clay)
6d1a06fd9c
Fix: Improve Elixir highlighting performance ( #1682 )
2021-09-17 21:06:36 +02:00
maxxnino
aa5ee99cf1
highlights(zig): label, switch item, operator, punctuation, field property ( #1685 )
...
Co-authored-by: maxxnino <idonthaveemail@dontknow.com>
2021-09-17 21:06:36 +02:00
delphinus
2c49c9af64
Enable to highlight shebang on JS/TS
2021-09-17 21:06:36 +02:00
maxxnino
9b265c9c4c
Update new query and parser for zig
2021-09-17 21:06:36 +02:00
Yorick Peterse
76bf941e09
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-09-17 21:06:36 +02:00
Santos Gallegos
4c40a46a6d
RST: use any-of? instead of match? ( #1678 )
2021-09-17 21:06:36 +02:00
Santos Gallegos
576f14d2ee
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-09-17 21:06:36 +02:00
Luxed
182b7be541
fix(c_sharp): Improve highlights
2021-09-17 21:06:36 +02:00
Luxed
aa1424fabc
feat(c_sharp): Simplify folds by only folding blocks of code instead of
...
folding the methods and their attributes
2021-09-17 21:06:36 +02:00
Luxed
777a2bf28a
feat(c_sharp): Add first draft of locals
2021-09-17 21:06:36 +02:00
maxxnino
b20a072cc0
highlights(zig): function return type, var decl type
2021-09-17 21:06:36 +02:00
maxxnino
357a91375d
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-09-17 21:06:36 +02:00
Sergio Alejandro Vargas
d8a1f3be65
highlights(lua): Organize function_call queries
2021-09-17 21:06:36 +02:00
Sergio Alejandro Vargas
e29bf132dd
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-09-17 21:06:36 +02:00
Stephan Seitz
fb20cf868b
Update teal highlights
2021-09-17 21:06:36 +02:00
Connor Lay (Clay)
363ac62e23
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-09-17 21:06:36 +02:00
leo60228
dfb5628a74
Indent C compound_literal_expression
2021-09-17 21:06:36 +02:00
Pierre Poupin
6875f4bd9d
feature: add godotResource queries
2021-09-17 21:06:36 +02:00
Stephan Seitz
95a3e81630
highlights(clojure): fix highlighting of #_
...
Fix https://github.com/sogaiu/tree-sitter-clojure/issues/14
2021-09-17 21:06:36 +02:00
Tomas Sandven
b1ce959946
Update YANG parser revision and highlights query
2021-09-17 21:06:36 +02:00
Mark Ellis
51fd70749b
added very basic HCL indentation support
2021-09-17 21:06:36 +02:00
Hennadii Chernyshchyk
808f0d9ce1
Remove regex for field
2021-09-17 21:06:36 +02:00
Stephan Seitz
3f5d554f68
injections(cuda): add injections.scm
2021-09-17 21:06:36 +02:00
Stephan Seitz
af63aa17d4
highlights(cuda): add support for __launch_bounds__
2021-09-17 21:06:36 +02:00
David Hotham
7d5becca27
YANG fold on blocks
2021-09-17 21:06:36 +02:00
Oliver Marshall
d569c542cd
Don't capture quotes as comments
2021-09-17 21:06:36 +02:00