We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c687a commit 98e57dbCopy full SHA for 98e57db
csharp-mode.el
@@ -1395,6 +1395,14 @@ This regexp is assumed to not match any non-operator identifier."
1395
(c-lang-const c-cpp-matchers)))
1396
1397
1398
+;; allow strings as switch-case values by leaving out string
1399
+;; delimiters in this definition
1400
+(c-lang-defconst c-nonlabel-token-key
1401
+ csharp (c-make-keywords-re t
1402
+ (cl-set-difference (c-lang-const c-keywords)
1403
+ (append (c-lang-const c-label-kwds)
1404
+ (c-lang-const c-protection-kwds))
1405
+ :test 'string-equal)))
1406
1407
(defconst csharp-font-lock-keywords-1 (c-lang-const c-matchers-1 csharp)
1408
"Minimal highlighting for C# mode.")
0 commit comments