From 4f2265632becabcd2c5b1791fa31ef278f1e496c Mon Sep 17 00:00:00 2001 From: Stuart Mashaal Date: Wed, 25 Aug 2021 19:38:45 -0400 Subject: 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 :facepalm: * update revision * fix "super" and "this" * godammit these .metals files are killing me * why did I commit this??? Co-authored-by: Stuart Mashaal --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5e214386..d75688df7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -131,15 +131,15 @@ effect on highlighting. We will work on improving highlighting in the near futur #### Keywords ``` -@conditional -@repeat +@conditional (e.g. `if`, `else`) +@repeat (e.g. `for`, `while`) @label for C/Lua-like labels @keyword -@keyword.function +@keyword.function (keyword to define a function, e.g. `func` in Go, `def` in Python) @keyword.operator (for operators that are English words, e.g. `and`, `or`) @keyword.return @operator (for symbolic operators, e.g. `+`, `*`) -@exception +@exception (e.g. `throw`, `catch`) @include keywords for including modules (e.g. import/from in Python) @type -- cgit v1.2.3-70-g09d2