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

WIP: Proper highlighting for the Wolfram Language (Mathematica) #2706

Merged
merged 32 commits into from
Nov 6, 2020

Commits on Sep 22, 2020

  1. Configuration menu
    Copy the full SHA
    75dc896 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2020

  1. Include keywords as list, break up regexes, add features

    For matching built-in symbols, a sorted list of all names in the System
    context is now provided in a separate file which can be automatically
    recreated. The required Mathematica code is given in the comment.
    
    As suggested by @joshgoebel, the regular expression for matching
    Mathematica's numbers is now broken into (slightly more) readable chunks.
    
    To provide features we had on StackExchange with google-pretty, more rules
    were added. This includes
    
    - explicit matching of operators and braces
    - matching of patterns and slots
    - matching of message names aka func::usage
    
    This implementation requires additional CSS classes, but looks reasonable
    on the standard styles.
    halirutan committed Sep 28, 2020
    Configuration menu
    Copy the full SHA
    1b5a3ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c01097 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b78e9fc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6216916 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0437cd8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8d61d15 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2020

  1. Configuration menu
    Copy the full SHA
    165ea9d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cc315e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e7262d View commit details
    Browse the repository at this point in the history
  4. Make more general for going into core HLJS.

    Remove styling from symbols (aka variables) and named-characters.
    Like braces, they will be matched, but not styled differently,
    which should make them more appropriate for all themes.
    halirutan committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    050cad2 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2020

  1. Configuration menu
    Copy the full SHA
    15d4251 View commit details
    Browse the repository at this point in the history
  2. Update src/languages/mathematica.js

    Co-authored-by: Josh Goebel <[email protected]>
    halirutan and joshgoebel authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    ae6e1e3 View commit details
    Browse the repository at this point in the history
  3. Update src/languages/mathematica.js

    Co-authored-by: Josh Goebel <[email protected]>
    halirutan and joshgoebel authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    3ee0fd0 View commit details
    Browse the repository at this point in the history
  4. Update src/languages/mathematica.js

    Co-authored-by: Josh Goebel <[email protected]>
    halirutan and joshgoebel authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    95e1d91 View commit details
    Browse the repository at this point in the history
  5. Update src/languages/mathematica.js

    Co-authored-by: Josh Goebel <[email protected]>
    halirutan and joshgoebel authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    b869c93 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2648bd1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    47ed49e View commit details
    Browse the repository at this point in the history
  8. separate symbol rules

    joshgoebel committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    5c02def View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b06b5ce View commit details
    Browse the repository at this point in the history
  10. proper type

    joshgoebel committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    33fbc4d View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2020

  1. Configuration menu
    Copy the full SHA
    7f43954 View commit details
    Browse the repository at this point in the history
  2. we need a naked object

    joshgoebel committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    1fa1040 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    67ceb03 View commit details
    Browse the repository at this point in the history
  4. Remove trailing commas

    halirutan committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    92b413a View commit details
    Browse the repository at this point in the history
  5. final cleanups

    joshgoebel committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    c4838b6 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'WIP_Wolfram_Language' of github.com:halirutan/highlight…

    ….js into WIP_Wolfram_Language
    joshgoebel committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    ad71815 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0653dcd View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2020

  1. Configuration menu
    Copy the full SHA
    a178a71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d240a7 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2020

  1. tweak changelog

    joshgoebel committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    c20aa2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d2d68a View commit details
    Browse the repository at this point in the history