Skip to content

Commit

Permalink
Semantic highlighting (#29)
Browse files Browse the repository at this point in the history
* Evaluate tokens and refactor token lookups

* Refactor

* WIP working semantic highlighting (no tests)

* WIP refactor (token mixins)

* Fix semantic encoding bug with empty encodings

* WIP Refactor parser into position and diagnostic classes (parsing failing at EOF)

* Fix EOF token bug

* Get tests passing with refactored parser

* Refactor tests to use dataclass for TestCase

* Semantic token testing

* Fix mutable dataclass default

* Fix 3.8 typing incompatibility
  • Loading branch information
aazuspan authored Aug 20, 2024
1 parent 332febf commit 040cc2d
Show file tree
Hide file tree
Showing 17 changed files with 1,246 additions and 797 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ A Language Server Protocol (LSP) server to provide language support for the [SPI

- **Diagnostics**: Reports the location of syntax errors and warnings.
- **Signature help**: Shows parameter hints as instructions are entered.
- **Hover**: Shows documentation and values on hover.
- **Hover**: Shows documentation and assigned values on hover.
- **Completion**: Provides suggestions for opcodes, labels, and variables.
- **Renaming**: Allows renaming labels and variables.
- **Renaming**: Renames matching labels or variables.
- **Go to definition**: Jumps to the definition of a label, memory address, or variable.
- **Semantic highlighting**: Color codes variables, constants, instructions, etc. based on program semantics.

------

Expand Down
Loading

0 comments on commit 040cc2d

Please sign in to comment.