File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ of a token."
206
206
((or (equal char ?_ )
207
207
(member category '(Ll Lo)))
208
208
'varid )
209
- ((and (>= char ?0 ) (<= char 9 ))
209
+ ((and (>= char ?0 ) (<= char ? 9 ))
210
210
'number )
211
211
((member char '(?\] ?\[ ?\( ?\) ?\{ ?\} ?\` ?\, ?\; ))
212
212
'special ))))
Original file line number Diff line number Diff line change @@ -38,6 +38,16 @@ order."
38
38
(goto-char (match-end 0 )))
39
39
(should (equal nil left-lexemes)))))
40
40
41
+ (ert-deftest haskell-lexeme-classify-chars-1 ()
42
+ (should (equal 'varsym (haskell-lexeme-classify-by-first-char ?= )))
43
+ (should (equal 'conid (haskell-lexeme-classify-by-first-char ?L )))
44
+ (should (equal 'consym (haskell-lexeme-classify-by-first-char ?: )))
45
+ (should (equal 'varid (haskell-lexeme-classify-by-first-char ?_ )))
46
+ (should (equal 'varid (haskell-lexeme-classify-by-first-char ?x )))
47
+ (should (equal 'char (haskell-lexeme-classify-by-first-char ?' )))
48
+ (should (equal 'string (haskell-lexeme-classify-by-first-char ?\" )))
49
+ (should (equal 'special (haskell-lexeme-classify-by-first-char ?\; )))
50
+ (should (equal 'number (haskell-lexeme-classify-by-first-char ?4 ))))
41
51
42
52
(ert-deftest haskell-lexeme-basic-tokens-1 ()
43
53
" Get some basic self delimiting tokens right"
You can’t perform that action at this time.
0 commit comments