summaryrefslogtreecommitdiff
path: root/prism
AgeCommit message (Collapse)Author
2023-10-13[ruby/prism] Remove now-defunct semantic_field from nodesKevin Newton
https://github.com/ruby/prism/commit/c82a9dad64
2023-10-13[ruby/prism] Final unescapes cleanupKevin Newton
https://github.com/ruby/prism/commit/bfcd8262a4
2023-10-13Remove old unescaping codeKevin Newton
2023-10-13[ruby/prism] Properly handle unescaping in regexpKevin Newton
https://github.com/ruby/prism/commit/abf9fd6863
2023-10-13[ruby/prism] Use current_string to handle :" symbolsKevin Newton
https://github.com/ruby/prism/commit/eedeec8f9a
2023-10-13[ruby/prism] Use current_string for :' symbolsKevin Newton
https://github.com/ruby/prism/commit/fadb5be520
2023-10-13[ruby/prism] Use current_string for %s symbol literalsKevin Newton
https://github.com/ruby/prism/commit/52504f8911
2023-10-13[ruby/prism] Split up lines in tilde heredocsKevin Newton
https://github.com/ruby/prism/commit/21fad0c2ce
2023-10-13[ruby/prism] Calculate heredoc common whitespace while lexingKevin Newton
https://github.com/ruby/prism/commit/c3f43b64a3
2023-10-13[ruby/prism] Enable remaining heredoc unescape testsKevin Newton
https://github.com/ruby/prism/commit/c7ea4941c5
2023-10-13[ruby/prism] Use current_string for escapes in heredocsKevin Newton
https://github.com/ruby/prism/commit/fc49acfc59
2023-10-13[ruby/prism] Use create_unescaped functions for empty heredocsKevin Newton
https://github.com/ruby/prism/commit/acec5a13cb
2023-10-13[ruby/prism] Use current_string for x string escape sequencesKevin Newton
https://github.com/ruby/prism/commit/66ce9280bb
2023-10-13[ruby/prism] Use token buffer for string lexingKevin Newton
https://github.com/ruby/prism/commit/087cd8f28b
2023-10-13[ruby/prism] Extract out a couple more token buffer functionsKevin Newton
https://github.com/ruby/prism/commit/341e027d23
2023-10-13[ruby/prism] Capture the token buffer logic into its own struct and functionsKevin Newton
https://github.com/ruby/prism/commit/4334f0775b
2023-10-13[ruby/prism] Use current_string to handle escapes in string literalsKevin Newton
https://github.com/ruby/prism/commit/d912d48104
2023-10-13[ruby/prism] Use current_string to handle %IKevin Newton
https://github.com/ruby/prism/commit/831d5f4b45
2023-10-13[ruby/prism] Use current_string for handling %W listsKevin Newton
https://github.com/ruby/prism/commit/edb1674725
2023-10-13[ruby/prism] Extract out string handling for %W listsKevin Newton
https://github.com/ruby/prism/commit/dba9bd6b1f
2023-10-13[ruby/prism] Use current_string to handle %i escapesKevin Newton
https://github.com/ruby/prism/commit/9c90d0a777
2023-10-13[ruby/prism] Use current_string to handle %w escapesKevin Newton
https://github.com/ruby/prism/commit/b8420ea7ae
2023-10-13[ruby/prism] Strip out old char unescapingKevin Newton
https://github.com/ruby/prism/commit/27ca207ab3
2023-10-13[ruby/prism] Handle remaining escape sequences for character literalsKevin Newton
https://github.com/ruby/prism/commit/ba33607034
2023-10-13[ruby/prism] Track current_string to pass forward for character literalsKevin Newton
https://github.com/ruby/prism/commit/be1d8ae8bb
2023-10-13[ruby/prism] Fix escaped 8 and escaped 9Kevin Newton
https://github.com/ruby/prism/commit/c3a46e2de5
2023-10-12[ruby/prism] Fix parsing symbols in strings after labelsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/e16531650d
2023-10-12[ruby/prism] Increase the depth for the For node index variableMatt Valentine-House
In CRuby's parser locals in for nodes appear deeper in the ast than they do in Prism, but we can fix that with a transparent scope https://github.com/ruby/prism/commit/460187f41e
2023-10-11[ruby/prism] Allow Scope nodes to be created for a For loopMatt Valentine-House
https://github.com/ruby/prism/commit/ded8711807
2023-10-11[ruby/prism] Add Node::typeKevin Newton
https://github.com/ruby/prism/commit/ca4943e3f9
2023-10-09[ruby/prism] Attach the ast node to the scopeMatt Valentine-House
So when building instruction sequences for a scope we can reference items from the ast node that requires the scope. This is useful for for loops, where the local variable tables from the parent scope will need to be referenced. https://github.com/ruby/prism/commit/426b1ca094
2023-10-06[ruby/prism] Emit error when assigning to a numbered parameterHaldun Bayhantopcu
https://github.com/ruby/prism/commit/66248ac2f6
2023-10-06[ruby/prism] Introduce transparent scopes.Matt Valentine-House
A transparent scope is a scope that cannot have local variables added to it's local table. When a local is added to it's table, it instead gets added to the first non-transparent parent scope. This is used in for loops to ensure the correct depth for local variables inside the body https://github.com/ruby/prism/commit/ddb8e82253 Co-Authored-By: Kevin Newton <kddnewton@gmail.com>
2023-10-05[ruby/prism] Check for duplicate parameter names in destructured paramsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/c3438aabea
2023-10-05[ruby/prism] Check for duplicate names in shadow argsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/e100c6b8ae
2023-10-05[ruby/prism] Fix parsing shadow args in lambda blocksHaldun Bayhantopcu
https://github.com/ruby/prism/commit/53efaf252d
2023-10-04[ruby/prism] [rust] write flag accessor functionsNathan Froyd
https://github.com/ruby/prism/commit/f2333ba4c8
2023-10-04[ruby/prism] give flag enums a non-`typedef`'d nameNathan Froyd
https://github.com/ruby/prism/commit/630af5cb0e
2023-10-03[ruby/prism] Provide pm_parser_err_current and pm_parser_err_previousKevin Newton
https://github.com/ruby/prism/commit/4828c96939
2023-10-03[ruby/prism] Consolidate diagnostic appendingsKevin Newton
https://github.com/ruby/prism/commit/4f107d8962
2023-10-02Sync with prism CallNode#name changesBenoit Daloze
* https://github.com/ruby/prism/pull/1533
2023-09-29[ruby/prism] remove `peek_string` to avoid subtle memory issuesNathan Froyd
https://github.com/ruby/prism/commit/f393d30ce1
2023-09-29[ruby/prism] Mark ranges as static literalKevin Newton
https://github.com/ruby/prism/commit/4c77944dd4
2023-09-29[ruby/prism] Bump versionKevin Newton
https://github.com/ruby/prism/commit/3e44415ca2
2023-09-29[ruby/prism] Add a type method for quick comparisonKevin Newton
https://github.com/ruby/prism/commit/0c7d9c3c01
2023-09-28[ruby/prism] Self should not be marked as static literalKevin Newton
https://github.com/ruby/prism/commit/81265ed8a7
2023-09-28[ruby/prism] Turn on static literal for assoc, hash, and array nodesKevin Newton
https://github.com/ruby/prism/commit/80c2c931b5
2023-09-28Move CRuby-specific prism files to top levelKevin Newton
2023-09-28[ruby/prism] Check whether the predicate is closed for conditionalsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/bf43006d0a
2023-09-28[ruby/prism] Check for a semicolon or a newline after the inheritance operatorHaldun Bayhantopcu
https://github.com/ruby/prism/commit/0326ba6775