Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regexp for keywords is wrong #115

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

Regexp for keywords is wrong #115

bjourne opened this issue Feb 9, 2013 · 0 comments
Assignees

Comments

@bjourne
Copy link
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 as completed in 4ad6568 Apr 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants