Commit graph

1468 commits

Author SHA1 Message Date
mhoffm
e607de4e1e update lockfile to point to v0.4.0; update highlight queries 2021-07-02 19:48:19 +02:00
mhoffm
b67442f112 fix missing maintainer in hcl parser config 2021-07-02 19:47:30 +02:00
Gregory Anders
c71edcd781
fish: only highlight 'test' keyword instead of entire condition (#1464) 2021-07-02 09:52:24 +00:00
Uy Ha
fbbfa3bda0 Move macro to @function.macro capture 2021-07-02 08:37:02 +02:00
Uy Ha
a8a7200241 Change captures:
- Disable highlight for `variable_ref`
- Capture `ENV` and `CACHE` as `@symbol`
- Capture '$', '{', '}', '(', ')' as punctuation
2021-07-02 08:37:02 +02:00
Uy Ha
c214c7c563 Remove query for specific keywords for now 2021-07-02 08:37:02 +02:00
Uy Ha
e121e52b2d Add comment parsing and highlight whole bracket argument 2021-07-02 08:37:02 +02:00
Uy Ha
6a2ce27949 Fix wrong name:
- `fold.scm` -> `folds.scm`
2021-07-02 08:37:02 +02:00
Uy Ha
e01e79c46c Add external scanner for cmake parser 2021-07-02 08:37:02 +02:00
Uy Ha
b090c94a7a Capture variable_ref instead of variable for @variable 2021-07-02 08:37:02 +02:00
Uy Ha
d1a5d827ae Change @parameter capture to @string 2021-07-02 08:37:02 +02:00
Uy Ha
0a2828a04c Move keywords to their appropriate capture:
- Unary and binary operator to `@keyword.operator`
- Boolean constants to `@boolean`
2021-07-02 08:37:02 +02:00
Uy Ha
4ab1647f20 Highlight only command name instead of the whole call 2021-07-02 08:37:02 +02:00
Uy Ha
4bc6b7c85a Remove non-foldable commands (incorrect copy and paste) 2021-07-02 08:37:02 +02:00
Uy Ha
485cedeed6 Add fold.scm 2021-07-02 08:37:02 +02:00
Uy Ha
90cddb0112 Refine highlights.scm:
- Match repeat, conditional, etc. to their corresponding commands
- Clean up `@parameter` match
- Add `$ENV` and `$CACHE` to queries
2021-07-02 08:37:02 +02:00
Uy Ha
9dac8b403d Add maintainer info 2021-07-02 08:37:02 +02:00
Uy Ha
df024e233a Add highlights.scm 2021-07-02 08:37:02 +02:00
Uy Ha
a51f25819a [WIP] tree-sitter-cmake integration 2021-07-02 08:37:02 +02:00
Akin Sowemimo
106eb8e500 feat(dart): add function call expression highlight
This is a work around since currently the upstream grammar does not
support a call_expression
2021-07-02 01:56:55 +02:00
Michael Hoffmann
bd00e4064f Update queries/hcl/highlights.scm
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-07-02 01:56:25 +02:00
mhoffm
a40bce5e36 work on queries; fix macos build 2021-07-02 01:56:25 +02:00
mhoffm
1914317ae7 work on queries 2021-07-02 01:56:25 +02:00
mhoffm
fabc31276e use version 0.3.1 of the hcl parser in lockfile.json 2021-07-02 01:56:25 +02:00
mhoffm
54eb49bf9c add used_by directive for some of the tools that are using hcl 2021-07-02 01:56:25 +02:00
mhoffm
3df418ae8a drop 'used_by' from hcl parser config 2021-07-02 01:56:25 +02:00
mhoffm
2ea75bf3aa add basic injections 2021-07-02 01:56:25 +02:00
mhoffm
590898bbb7 fix highlights.scm 2021-07-02 01:56:25 +02:00
mhoffm
d6758b2673 improve queries 2021-07-02 01:56:25 +02:00
mhoffm
4a29ccba9b improve queries 2021-07-02 01:56:25 +02:00
mhoffm
9275a15aad add hcl parser 2021-07-02 01:56:25 +02:00
Stephan Seitz
6d5b4f19f3 python(highlights): don't use type for APP 2021-07-01 22:50:33 +02:00
Munif Tanjim
b8d7853b88 highlights(typescript): fix indentifier for type imports 2021-07-01 22:50:06 +02:00
Gregory Anders
dbbedfec88
query: Only highlight predicate name (#1461)
Only highlight the name of the predicate using TSFunction rather than
the entire predicate block.
2021-07-01 20:43:09 +00:00
Stephan Seitz
2e073285dc highlights(go): modernize highlights.scm 2021-07-01 22:38:26 +02:00
GitHub
33fb1e3a42 Update lockfile.json 2021-07-01 19:29:20 +02:00
Akin Sowemimo
5fa8d5741d feat(dart): add function call query (commented) 2021-07-01 16:02:24 +02:00
Akin Sowemimo
f67a749b0f feat(dart): add multiplicative_operator
and fix conditional_assignable_selector
2021-07-01 16:02:24 +02:00
Ashish Panigrahi
aba5e9b4d5 feat: add comment highlighting in LaTeX 2021-07-01 10:33:16 +02:00
Farbod Salamat-Zadeh
efbd01f539
Add common quasiquote highlights/injections for Haskell (#1440) 2021-07-01 00:43:08 +00:00
Samyak Sarnayak
cf768b0069 doc: link Installation wiki page in the README
As discussed in #1439
2021-06-30 22:40:09 +02:00
Stephan Seitz
b09e889e3d highlights(latex): highlight chapter*, section*, part* ...
Fixes #1454
2021-06-30 20:36:02 +02:00
Folke Lemaitre
917ae3da7c fix: check if invalidate_query_cache[lang] is set before invalidating 2021-06-29 20:06:16 +02:00
tk-shirasaka
fe47dbe02b
Adds support for PHP's arrow funcion (#1427)
Co-authored-by: shirasaka <shirasaka@n-create.co.jp>
2021-06-28 10:10:58 -05:00
Folke Lemaitre
90024c24aa perf: cache has_query_files: fixes TS slowness 2021-06-28 16:17:23 +02:00
Jaehwang Jerry Jung
c04aa172a3 fix typo in query 2021-06-26 12:19:08 +02:00
elianiva
f9bce468a0 feat(haskell): improve highlight query
Co-authored-by: Farbod Salamat-Zadeh <12140044+farbodsz@users.noreply.github.com>
2021-06-26 12:10:52 +02:00
elianiva
684b74bea1 feat: add haskell highlights 2021-06-26 12:10:52 +02:00
GitHub
5e500cbc88 Update lockfile.json 2021-06-25 04:18:10 +02:00
Joakker
c699cc2e47 Use #any-of? instead of #match? where posible 2021-06-25 00:22:48 +02:00