Skip to content

Commit 8d55f0c

Browse files
committed
Why
1 parent 8addede commit 8d55f0c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/org/intellij/clojure/devkt/clojure-devkt.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class Clojure<TextAttributes> : ExtendedDevKtLanguage<TextAttributes>(
4646
C_PAREN1, C_PAREN2 -> colorScheme.parentheses
4747
C_BRACE1, C_BRACE2 -> colorScheme.braces
4848
C_BRACKET1, C_BRACKET2 -> colorScheme.brackets
49+
// ClojureHighlightingLexer.CALLABLE -> pack(ClojureColors.CALLABLE)
50+
C_KEYWORD -> colorScheme.keywords
51+
// ClojureHighlightingLexer.CALLABLE_KEYWORD -> pack(ClojureColors.CALLABLE, ClojureColors.KEYWORD)
52+
// ClojureHighlightingLexer.QUOTED_SYM -> pack(ClojureColors.QUOTED_SYM)
4953
else -> null
5054
}
5155

src/org/intellij/clojure/devkt/lang/clojure-parser.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ class ClojureParserUtil {
8181

8282
@JvmStatic
8383
fun nospace(b: PsiBuilder, l: Int): Boolean {
84-
if (space(b, l)) b.mark().apply { b.tokenType; error("no <whitespace> allowed") }
85-
.setCustomEdgeTokenBinders(WhitespacesBinders.GREEDY_LEFT_BINDER, WhitespacesBinders.GREEDY_RIGHT_BINDER)
84+
if (space(b, l)) {
85+
b.mark().apply { b.tokenType; error("no <whitespace> allowed") }
86+
.setCustomEdgeTokenBinders(WhitespacesBinders.GREEDY_LEFT_BINDER, WhitespacesBinders.GREEDY_RIGHT_BINDER)
87+
}
8688
return true
8789
}
8890

0 commit comments

Comments
 (0)