Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust lexer: bug fix with regex lexer and '!' + r'\b'
Rust macros end with a '!'. The word border (regex '\b') for such expressions is located before the '!' (e. g. "print\b!(...)"). The regex here used the suffix option, which added an r'\b' after each regex (e. g. r'print!\b'). Therefore, the supplied regular expressions didn't match the rust macros. To fix this problem, the suffix is removed. As every macro ends with an '!' (which implicitely includes a word border before), it's not necessary anyway.
- Loading branch information