Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
eef65cb0
Commit
eef65cb0
authored
7 years ago
by
Shil S
Browse files
Options
Downloads
Patches
Plain Diff
[groovy mode] Add 'trait' keyword
parent
dd839b50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mode/groovy/groovy.js
+2
-2
2 additions, 2 deletions
mode/groovy/groovy.js
with
2 additions
and
2 deletions
mode/groovy/groovy.js
+
2
−
2
View file @
eef65cb0
...
...
@@ -21,9 +21,9 @@ CodeMirror.defineMode("groovy", function(config) {
"
abstract as assert boolean break byte case catch char class const continue def default
"
+
"
do double else enum extends final finally float for goto if implements import in
"
+
"
instanceof int interface long native new package private protected public return
"
+
"
short static strictfp super switch synchronized threadsafe throw throws transient
"
+
"
short static strictfp super switch synchronized threadsafe throw throws
trait
transient
"
+
"
try void volatile while
"
);
var
blockKeywords
=
words
(
"
catch class do else finally for if switch try while
enum interface def
"
);
var
blockKeywords
=
words
(
"
catch class
def
do else
enum
finally for if
interface
switch
trait
try while
"
);
var
standaloneKeywords
=
words
(
"
return break continue
"
);
var
atoms
=
words
(
"
null true false this
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment