Skip to content

Commit

Permalink
Added missing "_" character to the lexer nmstart rule github #7
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbysmith007 committed Apr 8, 2013
1 parent c199af7 commit 47e66af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/css3.lex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%option case-insensitive

h [0-9a-f]
nmstart [a-z]
nmstart [_a-z]
nmchar [a-z0-9-_]
nl \n|\r\n|\r|\f
string1 \"([\t !#$%&(-~]|\\{nl}|\')*\"
Expand Down
4 changes: 3 additions & 1 deletion test/parse.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@

(deftest parse-underscores (parse)
(assert-equal '(:class "foo-bar_bast")
(css::parse-results " .foo-bar_bast ")))
(css::parse-results " .foo-bar_bast "))
(assert-equal '(:class "_foo")
(css::parse-results " ._foo ")))

(deftest nth-x-pseudo (parse)
(assert-equal
Expand Down

0 comments on commit 47e66af

Please sign in to comment.