Skip to content

Commit

Permalink
Remove frontend AST pattern matching (WIP) (#3132)
Browse files Browse the repository at this point in the history
* Remove frontend AST pattern matching (WIP)

* pkg bubble plugin without lezer template

* uhmmm

* remove log

* write new scope analysis based on TreeCursor and remove old code

* more precise function stuff

* support for loop, fix weird iteration

* Support try catch, fix console group, comments

* Support module, quote, :, do

* New API: Pluto.is_single_expression (#3134)

* Update scopestate_statefield.js

* Fix #3136

* Fix #3136

* Update scopestate_statefield.js

* Fix bracket matching

* Update block_matcher_plugin.js

* Update scopestate_statefield.js

* fix ts errors

* Support scope in generator expressions
  • Loading branch information
fonsp authored Jan 17, 2025
1 parent 6a3acc4 commit b7193cb
Show file tree
Hide file tree
Showing 18 changed files with 406 additions and 2,409 deletions.
4 changes: 2 additions & 2 deletions frontend/components/CellInput/debug_syntax_plugin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EditorView, syntaxTree, syntaxTreeAvailable } from "../../imports/CodemirrorPlutoSetup.js"
import { EditorView, syntaxTree, syntaxTreeAvailable, Text } from "../../imports/CodemirrorPlutoSetup.js"
import { iterate_with_cursor } from "./lezer_template.js"

/**
* @param {any} doc
* @param {Text} doc
* @param {ReturnType<typeof syntaxTree>} tree
*/
let find_error_nodes = (doc, tree) => {
Expand Down
Loading

0 comments on commit b7193cb

Please sign in to comment.