Skip to content

Investigate rolling PEG parser for Textmate scope selectors in WASM format #18

@zm-cttae

Description

@zm-cttae

⚡️️ Feature Request

  • I'm using the latest version of vscode-textmate-languageservice available.
  • I searched existing issues, open & closed. Yes, my feature request is new.

Is your feature request related to a problem?

The Textmate scope selector shows below-par performance due to exponential expense in path in grammar specification.

Describe the solution you'd like

  • Port PEG parser to Rust using pest (rust-peg).
  • Build parser using Rust toolchain for WASM generation.
  • Confirm WASM code & bindings works vs specification with no regressions.

Describe alternatives you've considered

Already written FastScopeSelector for scope & path in linear time O(cN)
c = the number of alphanumeric scope atoms.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions