Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Install the exact version instead of range #260

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
channel: [stable, beta]
channel: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: UziTech/action-setup-atom@v2
with:
version: ${{ matrix.channel }}
- name: Install windows-build-tools
if: ${{ matrix.os == 'windows-latest' }}
run: |
npm i [email protected]
- name: Install dependencies
run: apm install
- name: Run tests
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"atom-grammar-test": "^0.6.3",
"tree-sitter-embedded-template": "^0.15.2",
"tree-sitter-html": "^0.15.0"
"tree-sitter-embedded-template": "0.19.0",
"tree-sitter-html": "0.19.0"
},
"devDependencies": {
"coffeelint": "^1.10.1",
Expand Down
6 changes: 6 additions & 0 deletions spec/tree-sitter-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ describe('Tree-sitter HTML grammar', () => {
</html>
`)

grammar = atom.grammars.grammarForScopeName('text.html.basic')

lines = grammar.tokenizeLines(editor.getText())

expect(lines).toBe([])

// Tag punctuation.
expect(editor.scopeDescriptorForBufferPosition([0, 0]).toString()).toBe(
'.text.html.basic .source.html .punctuation.definition.tag.begin'
Expand Down
7 changes: 7 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<meta name='"' content="This'll test single and double quotes.">
</head>
<body>
</html>