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

Rust lexer: bug fix with rust macros #1608

Merged
merged 3 commits into from Nov 19, 2020
Merged

Commits on Nov 18, 2020

  1. Rust lexer: move keywords from funcs_macros to types

    'drop', 'Some', 'None', 'Ok' and 'Err' are types, not macros.
    K. Lux committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    a801eb5 View commit details
    Browse the repository at this point in the history
  2. 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.
    K. Lux committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    60d8a7f View commit details
    Browse the repository at this point in the history
  3. Rust lexer: changing rust macro type

    Rust macros seem to fit more into the "magic function" category than into the "builtin" one.
    K. Lux committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    28b83f9 View commit details
    Browse the repository at this point in the history