Commit graph

14 commits

Author SHA1 Message Date
Pham Huy Hoang
107e61afb7 refactor: Remove all (ERROR) @error captures
As discussed in PR#5421, capturing `@error` is inconsistent, requiring
deep nesting (or priority) in order to correctly have red backgrounds to
it.

Some queries has this capture, some don't. For consistency purposes,
removing all of them is more preferable.

For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)`
to your custom queries.
2023-10-25 18:18:50 +02:00
Meet Mangukiya
cffa252f5e feat: add solidity folds 2023-10-21 14:40:19 -04:00
zeroknots
86d0b2b1c0
solidity: Update highlights.scm (#5453)
https://soliditylang.org/blog/2021/04/21/custom-errors/

error keyword was introduced in 0.8.4
2023-09-27 15:08:46 +09:00
Amaan Qureshi
82bcd8483e fix(solidity): variable should not match last, tidy up highlights 2023-04-25 14:19:44 -04:00
Zhizhen He
181a580190 fix: revert for solidity 2023-03-21 02:23:52 -04:00
Zhizhen He
a1df50a79f docs: fix typo 2023-03-21 02:23:52 -04:00
Amaan Qureshi
5a87bc98da feat: add @comment.documentation where applicable 2023-03-05 17:15:32 -05:00
Amaan Qureshi
5c511dd124 feat(solidity): use maintained parser and update highlights accordingly 2023-02-24 13:05:33 -08:00
dundargoc
4612212c72 docs: fix typos 2023-02-23 11:39:43 -08:00
ObserverOfTime
08bd9d0e08 highlights(solidity): use more specific groups 2022-11-26 13:17:51 +02:00
Stephan Seitz
f9d1c68cf9 highlights(solidity): use @function.call/@method.call 2022-09-11 04:16:06 -07:00
YongJieYongJie
fc0b881f93 Refactor solidity highlights.scm further
- Instead of @keyword, use @conditional, @exception, @return, @function
  as appropriate
- Standardize to using @field (instead of @property)for struct members
2022-03-11 19:06:39 +01:00
YongJieYongJie
8f3991065d Refactor solidity highlights.scm
- Use more specific/appropriate captures; change invalid captures
- Don't highlight punctuations in type names (e.g., the brackets in
  'bytes32[]')
2022-03-11 19:06:39 +01:00
YongJieYongJie
a180859eea Add highlights query for Solidity 2022-03-11 19:06:39 +01:00