Skip to content

Commit

Permalink
Rename TokenTraversalStep to TokenReferenceStep
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Jan 9, 2024
1 parent 950e36d commit 3b484eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/syntax-highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Fallback types are chosen based on meaningful semantic mapping and default theme
| `hcl-objectKey` | `parameter` |
| `hcl-mapKey` | `parameter` |
| `hcl-keyword` | `variable` |
| `hcl-traversalStep` | `variable` |
| `hcl-referenceStep` | `variable` |
| `hcl-typeComplex` | `function` |
| `hcl-typePrimitive` | `keyword` |
| `hcl-functionName` | `function` |
Expand Down
4 changes: 2 additions & 2 deletions internal/lsp/token_encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func (te *TokenEncoder) resolveTokenType(token lang.SemanticToken) (semtok.Token
case lang.TokenKeyword:
return te.firstSupportedTokenType(
semtok.TokenType(lang.TokenKeyword), semtok.TokenTypeVariable)
case lang.TokenTraversalStep:
case lang.TokenReferenceStep:
return te.firstSupportedTokenType(
semtok.TokenType(lang.TokenTraversalStep), semtok.TokenTypeVariable)
semtok.TokenType(lang.TokenReferenceStep), semtok.TokenTypeVariable)
case lang.TokenTypeComplex:
return te.firstSupportedTokenType(
semtok.TokenType(lang.TokenTypeComplex), semtok.TokenTypeFunction)
Expand Down

0 comments on commit 3b484eb

Please sign in to comment.