ionide / ionide/FsAutoComplete

Enhance support for fsl/fsy files

Open
#712 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
F#
Stars
486
Forks
169
Avg merge
2d 8h
Merged PRs (30d)
5

Description

Now that https://github.com/fsprojects/FsLexYacc/pull/144 is merged, we should be able to take an explicit dependency on the core logics for fslex and fsyacc. The AST structures provided for lex and yacc files in these libraries should enable us to lgiht up many LSP features for lex/yacc files, including:

* intellisense for parser rules
* provide syntax highlighting for the F# code inside a rule (by creating 'virtual documents' that contain the F# code from the TopCode + the code in a specific rule)
* go-to-definition for the parser rules
* semantic coloration of tokens

I expect that some rounds of enhancements might be necessary to the FsLexYacc project, as those projects don't seem to surface ranges for core concepts like `parser rule` or `token`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.