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

Update Crystal lexer #1650

Merged
merged 7 commits into from Jan 4, 2021
Merged

Update Crystal lexer #1650

merged 7 commits into from Jan 4, 2021

Commits on Dec 28, 2020

  1. crystal: drop all classes from builtins; these aren't normally highli…

    …ghted
    
    ("normally" meaning all other highlighter tools)
    oprypin committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    90f7621 View commit details
    Browse the repository at this point in the history
  2. crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters

    It seems that Ruby supports strings such as `%*text*` where `*` can be anything. But Crystal never had anything like that. It does, however, keep `%|text|`, so add a case for that.
    oprypin committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    0358490 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f1b1e4f View commit details
    Browse the repository at this point in the history
  4. crystal: fix string literals and escape sequences

    Update list of escapes. Support Unicode escape sequences.
    
    Also remove the Ruby-specific `:@foo` symbol syntax, Crystal doesn't have it.
    oprypin committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    3ee298d View commit details
    Browse the repository at this point in the history
  5. crystal: uppercase identifiers aren't always constants

    Make `FOO::Bar` be highlighted like `Foo::Bar` would be, rather than like `FOO`
    oprypin committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    2122590 View commit details
    Browse the repository at this point in the history
  6. crystal: annotations can be namespaced

    Highlight the entire inside part of `@[Foo::Bar]`, not just the `Foo` part
    
    (these used to be named 'attributes' but the official name is 'annotations' now, so I also change that)
    oprypin committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    3372173 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    24d05ce View commit details
    Browse the repository at this point in the history