-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #974 from savetheclocktower/tree-sitter-may
Tree-sitter rolling fixes, 1.117 edition
- Loading branch information
Showing
15 changed files
with
532 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-2.16 KB
(100%)
packages/language-ruby/grammars/tree-sitter-ruby/tree-sitter-ruby.wasm
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
packages/language-sass/grammars/modern-tree-sitter-scss.cson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'SCSS' | ||
scopeName: 'source.css.scss' | ||
type: 'modern-tree-sitter' | ||
# Built from the fork at savetheclocktower/tree-sitter-scss. | ||
parser: 'tree-sitter-scss' | ||
|
||
fileTypes: [ | ||
'scss' | ||
'css.scss' | ||
'css.scss.erb' | ||
'scss.erb' | ||
'scss.liquid' | ||
] | ||
|
||
injectionRegex: '^(scss|SCSS)$' | ||
|
||
treeSitter: | ||
parserSource: 'github:savetheclocktower/tree-sitter-scss#090d25a5fc829ce6956201cf55ab6b6eacad999c' | ||
grammar: 'tree-sitter/tree-sitter-scss.wasm' | ||
highlightsQuery: 'tree-sitter/highlights.scm' | ||
foldsQuery: 'tree-sitter/folds.scm' | ||
indentsQuery: 'tree-sitter/indents.scm' | ||
tagsQuery: 'tree-sitter/tags.scm' | ||
|
||
comments: | ||
start: '//' | ||
line: '//' | ||
block: ['/*', '*/'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
(block) @fold |
365 changes: 365 additions & 0 deletions
365
packages/language-sass/grammars/tree-sitter/highlights.scm
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
"{" @indent | ||
"}" @dedent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(rule_set (selectors) @name) @definition.selector | ||
|
||
(keyframes_statement (keyframes_name) @name) @definition.keyframes | ||
|
||
(mixin_statement (name) @name) @definition.mixin | ||
|
||
(function_statement (name) @name) @definition.function |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
exports.consumeHyperlinkInjection = (hyperlink) => { | ||
hyperlink.addInjectionPoint('source.css.scss', { | ||
types: ['comment', 'single_line_comment'] | ||
}); | ||
}; | ||
|
||
exports.consumeTodoInjection = (todo) => { | ||
todo.addInjectionPoint('source.css.scss', { | ||
types: ['comment', 'single_line_comment'] | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
{ | ||
"name": "language-sass", | ||
"version": "0.62.2", | ||
"main": "lib/main", | ||
"description": "Sass/SCSS language support in Atom", | ||
"license": "MIT", | ||
"engines": { | ||
"atom": "*", | ||
"node": "*" | ||
"node": ">=12" | ||
}, | ||
"repository": "https://github.com/pulsar-edit/pulsar", | ||
"devDependencies": { | ||
"dedent": "^0.7.0" | ||
}, | ||
"consumedServices": { | ||
"hyperlink.injection": { | ||
"versions": { | ||
"0.1.0": "consumeHyperlinkInjection" | ||
} | ||
}, | ||
"todo.injection": { | ||
"versions": { | ||
"0.1.0": "consumeTodoInjection" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
'.source.css.scss': | ||
'!important': | ||
prefix: '!' | ||
body: 'i!important${:;}$0' | ||
'@use': | ||
prefix: 'use' | ||
body: "@use '${1:file}'${2: as ${3:alias}};" | ||
'@import': | ||
prefix: 'import' | ||
body: '@import "$0";' | ||
description: "An enhanced version of CSS’s “@import” rule." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/import/" | ||
'@include': | ||
prefix: 'include' | ||
body: '@include ${1:mixin}${2:($3)};$0' | ||
description: "Include a mixin into the current context." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/mixin/" | ||
'@extend': | ||
prefix: 'extend' | ||
body: '@extend ${1}$0'; | ||
description: "Tells one selector to inherit the styles of another." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/extend/" | ||
'@if': | ||
prefix: 'if' | ||
body: """ | ||
@if ${1:conditions} { | ||
$0 | ||
} | ||
""" | ||
description: "Controls whether or not its block gets evaluated." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/control/if/" | ||
'@mixin': | ||
prefix: 'mixin' | ||
body: """ | ||
@mixin ${1:name}${2:($3)} { | ||
$0 | ||
} | ||
""" | ||
description: "Include a mixin." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/mixin/" | ||
'@function': | ||
prefix: 'fun' | ||
body: """ | ||
@mixin ${1:name} { | ||
$0 | ||
} | ||
""" | ||
description: "Define your own function." | ||
descriptionMoreURL: "https://sass-lang.com/documentation/at-rules/function/" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters