Skip to content

Commit

Permalink
Merge pull request #62 from matthewnitschke/fixed_identifier_typing
Browse files Browse the repository at this point in the history
Fixed identifier highlighting
  • Loading branch information
TimWhiting authored Feb 11, 2024
2 parents 31ea08b + 4009132 commit 1a31399
Show file tree
Hide file tree
Showing 9 changed files with 3,762 additions and 3,856 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm test
13 changes: 0 additions & 13 deletions index.js

This file was deleted.

6 changes: 4 additions & 2 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@

("Function" @type)

(this) @variable.builtin

; properties
; TODO: add method/call_expression to grammar and
; distinguish method call from variable access
Expand Down Expand Up @@ -211,8 +213,8 @@
] @keyword

; when used as an identifier:
((identifier) @variable.builtin
(#vim-match? @variable.builtin "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$"))
((identifier) @variable
(#vim-match? @variable "^(abstract|as|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|set|static|typedef)$"))

["if" "else" "switch" "default"] @conditional

Expand Down
28 changes: 0 additions & 28 deletions src/binding.cc

This file was deleted.

Loading

0 comments on commit 1a31399

Please sign in to comment.