Skip to content

Commit 3c989a8

Browse files
committed
using: Don't mess up alnums in indentifier-fontification.
1 parent 8d43a70 commit 3c989a8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

csharp-mode-tests.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
"using" 'font-lock-keyword-face
121121
"Reference" 'font-lock-constant-face
122122
"Under_scored" 'font-lock-constant-face
123+
"WithNumbers09.Ok" 'font-lock-constant-face
124+
))
125+
123126
))
124127

125128
(defun list-repeat-once (mylist)

csharp-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,11 +762,11 @@ to work properly with code that includes attributes."
762762
,`(,(concat
763763
"\\<\\(using\\)[ \t\n\f\v\r]+"
764764
"\\(?:"
765-
"\\([A-Za-z_]+\\)"
765+
"\\([A-Za-z0-9_]+\\)"
766766
"[ \t\n\f\v\r]*="
767767
"[ \t\n\f\v\r]*"
768768
"\\)?"
769-
"\\(\\(?:[A-Za-z_]+\\.\\)*[A-Za-z_]+\\)"
769+
"\\(\\(?:[A-Za-z0-9_]+\\.\\)*[A-Za-z_]+\\)"
770770
"[ \t\n\f\v\r]*;")
771771
(2 font-lock-constant-face t t)
772772
(3 font-lock-constant-face))

test-files/using-fontification.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
using Reference;
22
using Under_scored;
3+
using WithNumbers09.Ok;

0 commit comments

Comments
 (0)