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
e370099b
Commit
e370099b
authored
11 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
[clojure mode] Fix allowed symbol characters
Closes #1460
parent
6f45a030
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/clojure/clojure.js
+3
-4
3 additions, 4 deletions
mode/clojure/clojure.js
with
3 additions
and
4 deletions
mode/clojure/clojure.js
+
3
−
4
View file @
e370099b
...
...
@@ -44,8 +44,7 @@ CodeMirror.defineMode("clojure", function () {
sign
:
/
[
+-
]
/
,
exponent
:
/e/i
,
keyword_char
:
/
[^\s\(\[\;\)\]]
/
,
basic
:
/
[\w\$
_
\-]
/
,
lang_keyword
:
/
[\w
*+!
\-
_?:
\/]
/
symbol
:
/
[\w
*+!
\-\.
_?:
\/]
/
};
function
stateStack
(
indent
,
type
,
prev
)
{
// represents a state stack object
...
...
@@ -195,10 +194,10 @@ CodeMirror.defineMode("clojure", function () {
popStack
(
state
);
}
}
else
if
(
ch
==
"
:
"
)
{
stream
.
eatWhile
(
tests
.
lang_keyword
);
stream
.
eatWhile
(
tests
.
symbol
);
return
ATOM
;
}
else
{
stream
.
eatWhile
(
tests
.
basic
);
stream
.
eatWhile
(
tests
.
symbol
);
if
(
keywords
&&
keywords
.
propertyIsEnumerable
(
stream
.
current
()))
{
returnType
=
KEYWORD
;
...
...
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