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

js operators #79

Merged
merged 10 commits into from
May 19, 2023
Merged

js operators #79

merged 10 commits into from
May 19, 2023

Commits on Oct 2, 2022

  1. migrate atom/language-javascript#686

    The non-tree sitter version is almost completely copied so nothing to say there.
    
    There are some inconsistencies/missing operators in the tree-sitter version, for example:
    - `this`
    - `new.target`
    - `import.meta`
    - The keyword.operator order looks more wrong the more I look at it but that's for another day because of the possible scope regularity change in the future: atom/language-javascript#690
    - btw atom/language-javascript#691 looks good to me I should probably do that
    
    Even though tree-sitter will have some above changes I added the new operators (`** **= ?? &&= ||= ??= void`) anyway.
    Well `void` is not new it's just missing.
    See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators for a list of operators. Of course while the comma is technically an operator, hopefully it's used more to separate elements in arrays or properties in objects.
    
    Also `delete` is an operator not control.
    icecream17 authored Oct 2, 2022
    Configuration menu
    Copy the full SHA
    18d1f19 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. update tests

    ?. is illegal in new
    
    update console methods
    timeStamp has the same support as profile and both are nonstandard so they're both included
    
    update global classes
    Wait a minute, Generator and GeneratorFunction are _not_ global...
    so actually just any class specified in ECMA262
    non global additions:
    - AsyncFunction
    - AsyncGeneratorFunction
    - TypedArray
    luckily MDN's sidebar of
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
    shows all of these
    Wait... JSON? That's not a class
    Math has the scope support.class.math.js for some reason so I guess add "json" likewise for json
    
    Never knew about WeakRef and FinalizationRegistry
    Wonder why it's so unknown; this is a common idea in Rust at least....
    
    So yeah, JSON is separate just like Math
    Lots of copying and pasting
    
    rest vs spread depends on context
    I don't know why that test failed
    icecream17 authored Dec 19, 2022
    Configuration menu
    Copy the full SHA
    aca05b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2023

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

Commits on Feb 14, 2023

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

Commits on Feb 15, 2023

  1. fix tests

    given that the entire Relay.QL was entity.name.function, it's not surprising here
    Therefore this pr just adds "meta.delimiter.<>" to the delimiter in Relay.QL or Relay?.QL
    icecream17 authored Feb 15, 2023
    Configuration menu
    Copy the full SHA
    60f63ba View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

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

Commits on May 16, 2023

  1. Configuration menu
    Copy the full SHA
    c7a90cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc432a5 View commit details
    Browse the repository at this point in the history
  3. test some illegal ?.

    icecream17 authored May 16, 2023
    Configuration menu
    Copy the full SHA
    4dde985 View commit details
    Browse the repository at this point in the history
  4. fix tests

    icecream17 authored May 16, 2023
    Configuration menu
    Copy the full SHA
    e3f1cb7 View commit details
    Browse the repository at this point in the history