Commit graph

215 commits

Author SHA1 Message Date
Stephan Seitz
39d5b97bc5 feat(C++ highlights): highlight operator_name as function 2020-09-08 22:03:57 +02:00
Stephan Seitz
985c5def34 C/C++ locals: Deduplicate C++ locals contained in C 2020-09-08 22:02:39 +02:00
Stephan Seitz
8bc5d1ff3f Add C++ folds and C comment/preproc folds 2020-09-08 22:02:39 +02:00
kyazdani42
3a3a1bb252 use keyword.function instead of function 2020-09-08 19:23:04 +02:00
kyazdani42
b10a09ebc3 fix function/end keywords not applied for every scope 2020-09-08 19:23:04 +02:00
kyazdani42
8d6c40ce24 fix using highlight query extension for every query type 2020-09-07 21:57:56 +02:00
Stephan Seitz
f37d94699f go locals: remove unused strip! directive 2020-09-07 01:47:53 +02:00
Santos Gallegos
c719e60266 rst: remove unused captures
This is causing an error.
2020-09-06 21:57:32 +02:00
Pau Ruiz Safont
4db39e27c9 fix: ocaml highlight
The string.special group was removed from highlight.lua, replace its
uses by the string group.
2020-09-06 20:52:56 +02:00
kyazdani42
b69b43b712 fix: contional > conditional in lua hl.scm 2020-09-06 18:32:14 +02:00
kyazdani42
15b182b2a9 fix bash highlight 2020-09-06 17:59:16 +02:00
Santos Gallegos
0928b918a0 Lua: update highlights 2020-09-06 17:25:03 +02:00
Santos Gallegos
5504b84d21 Lua: fix loop and conditional keywords highlights 2020-09-06 17:24:34 +02:00
Steven Sojka
02735aae55 feat(folds): add ts and js folds 2020-09-06 17:20:43 +02:00
kiyan42
feead20c04 change @meta to @type for derive directives because @meta is not defined 2020-09-06 17:00:41 +02:00
Steven Sojka
881eff1c60 fix(highlights): fix ts parameter highlights 2020-09-06 16:59:03 +02:00
Pieter Goetschalckx
9ef264a733 Fix filename 2020-09-05 10:02:42 +02:00
Santos Gallegos
fa5aa080dc Query: update highlights
More color!
2020-09-04 21:21:48 +02:00
Santos Gallegos
f85dd99b5d Query: add program as scope 2020-09-04 13:49:04 -05:00
Santos Gallegos
fcdb3eb35d Python: update folds
Missed one
2020-09-03 19:03:05 +02:00
Santos Gallegos
bdf43b15df Python: add folds 2020-09-03 18:14:28 +02:00
Steven Sojka
fd356a2670 fix(locals): js add arrow function parameter as definition 2020-09-02 17:26:17 +02:00
Thomas Vigouroux
d5e11c41cf fold(c): ignore compound statements 2020-09-01 21:51:17 +02:00
Thomas Vigouroux
545e5c479a fix(fold): revamp fold
fix(fold): typo

fix(fold): remove debug and add queries

fix(fold): fallback to local scopes for folds
2020-09-01 21:51:17 +02:00
Stephan Seitz
1cdf8bf750 C highlights: make preproc_defined @function.macro 2020-08-30 10:53:41 +02:00
Stephan Seitz
5f37847dd8 C highlights: add bitwise-xor operator 2020-08-27 07:30:02 +02:00
Steven Sojka
a8ec43da64 fix(locals): add js namespace import as definition 2020-08-26 14:14:20 +02:00
Pau Ruiz Safont
3fe5a067b3 feat(highlights): add ocaml 2020-08-24 10:16:38 +02:00
Stephan Seitz
32fdbe519e feat(c/cpp highlights): highlight pointer/reference parameters 2020-08-24 09:54:26 +02:00
Stephan Seitz
627a1e558f C++ highlights: Add initial support for attributes 2020-08-22 19:32:59 +02:00
Stephan Seitz
5c0ca925af Python highlights: add additional operators
This is applies the upstream PR to our repo:
https://github.com/tree-sitter/tree-sitter-python/pull/73
2020-08-20 11:51:30 +02:00
Avi Dessauer
d2538ab7a7 Change self back to variable.builtin 2020-08-20 09:03:58 +02:00
Avi Dessauer
aacca0abf1 Deduplicate queries/rust/highlights.scm
Co-authored-by: TravonteD <tman1300@aol.com>
2020-08-20 09:03:58 +02:00
Avi Dessauer
df37483e3a Highlight operators + improve consistency with Vim syntax 2020-08-20 09:03:58 +02:00
Santos Gallegos
fe8d91b748 Python: fix some highlights
These aren't valid lua patterns
2020-08-18 10:31:42 -05:00
Nathan Smith
05798284ff
@function.method -> @method 2020-08-17 19:30:04 -07:00
Santos Gallegos
6effdfbdc4 Python: update highlights
- Fix "as" outside imports
- Add builtin classes and constants
2020-08-17 22:23:46 +02:00
Steven Sojka
54b485ba7b
Merge pull request #319 from kyazdani42/feat/add-jsx-fragment-and-self-closing
add jsx fragment and jsx self closing element highlights
2020-08-17 14:25:53 -05:00
Steven Sojka
cab8717959 chore(highlights): remove is predicate usage 2020-08-17 19:27:35 +02:00
Steven Sojka
b796f0725d
Merge pull request #305 from theHamsta/textobjects-submodules
Textobjects submodules
2020-08-17 11:39:22 -05:00
kiyan42
9c8c01dc0f add jsx fragment and jsx self closing element highlights 2020-08-17 18:35:15 +02:00
kiyan42
20e448882e some refacto, doc fixes and jsx queries
- compute query language extensions *after* default ones
(jsx after javascript)
- remove outdated ts_utils functions from docs
- add better regex detection to javascript
- javascriptreact to use javascript queries
- add javascript.jsx to javascript queries
- write jsx.scm hl file
2020-08-17 17:48:33 +02:00
Stephan Seitz
5cfa03f2bd Textobjects: add swap feature 2020-08-17 17:44:40 +02:00
TravonteD
72905524c2 Add fennel support 2020-08-16 20:40:33 -04:00
Santos Gallegos
cf37d143bf Python: update highlights
- Get rid of @self
- Highlight methods correctly
- Highlight self as the first parameter of a method
- Use new syntax (# for predicates, (_) instead of (*) for wildcards)
2020-08-16 22:00:11 +02:00
Santos Gallegos
ed3469b59f Python: update locals 2020-08-16 21:49:14 +02:00
Steven Sojka
ce43dbf54c fix(queries): use vim-match for non lua regexes 2020-08-16 18:31:56 +02:00
Steven Sojka
4a747aa30c
Merge pull request #296 from steelsojka/feat-is-predicate
feat(highlights): add is predicate
2020-08-16 11:27:15 -05:00
Steven Sojka
5462027beb
Merge pull request #295 from steelsojka/feature/set-scopes-for-definitions
feat(defintions): allow setting of scope
2020-08-16 11:26:44 -05:00
Steven Sojka
7f7219b379 feat(definitions): allow setting of scope 2020-08-16 09:10:09 -05:00