Regexp for keywords is wrong #115

Closed
bjourne opened this Issue Feb 9, 2013 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

bjourne commented Feb 9, 2013

Current regexp for highlighting keywords is wrong:

(concat "[^.]"
        (regexp-opt (append coffee-js-reserved
                  coffee-js-keywords
                  coffee-cs-keywords
                  iced-coffee-cs-keywords) 'words)))

It doesn't catch keywords at the beginning of the line. It should be like this instead:

(format "\\<%s\\>"
  (regexp-opt (append coffee-js-reserved
              coffee-js-keywords
              coffee-cs-keywords
              iced-coffee-cs-keywords) 'words)))

@ghost ghost assigned jart Apr 14, 2013

@jart jart closed this in 4ad6568 Apr 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment