summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorStuart Mashaal <stumash@users.noreply.github.com>2021-08-25 19:38:45 -0400
committerGitHub <noreply@github.com>2021-08-25 18:38:45 -0500
commit4f2265632becabcd2c5b1791fa31ef278f1e496c (patch)
treefb94d9436d290193130447b1d6338f700bef79d5 /CONTRIBUTING.md
parentd8595fb923d90dcb7d9a971034f6eccad74ee1a7 (diff)
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 <smashaal@hopper.com>
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b5e21438..d75688df 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