Skip to content

Commit 4cb5d9e

Browse files
authored
Merge pull request #11 from fdncred/main
add ci + wip regexes
2 parents 91f442d + 64c1edc commit 4cb5d9e

File tree

4 files changed

+61
-5
lines changed

4 files changed

+61
-5
lines changed

.github/workflows/package.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v2
27+
- run: npm install
28+
- uses: lannonbr/vsce-action@master
29+
with:
30+
args: "package"
31+
32+
# Runs a single command using the runners shell
33+
# - name: Run a one-line script
34+
# run: echo Hello, world!
35+
36+
# Runs a set of commands using the runners shell
37+
# - name: Run a multi-line script
38+
# run: |
39+
# echo Add other actions to build,
40+
# echo test, and deploy your project.

nushell.theme-minimal.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
}
1111
},
1212

13+
{
14+
"scope":"keyword.control.other.nushell",
15+
"settings": {
16+
"foreground": "#FF0000",
17+
"fontStyle": "bold"
18+
}
19+
},
20+
1321
// these are the sub commands
1422
{
1523
"scope": [ "keyword.other", ],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-nushell-lang",
33
"displayName": "vscode-nushell-lang",
44
"description": "nushell language for vscode",
5-
"version": "0.0.4",
5+
"version": "0.0.5",
66
"license": "MIT",
77
"publisher": "nushell-team",
88
"repository": "https://github.com/fdncred/vscode-nushell-lang/",

syntaxes/nushell.tmLanguage.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@
1616
"repository": {
1717
"keywords": {
1818
"patterns": [
19-
{
20-
"name": "keyword.control.nushell",
21-
"match": "\\b(ansi|append|autoview|benchmark|binaryview|build-string|cal|cd|char|clear|clip|compact|count|cp|debug|default|describe|do|drop|du|echo|empty?|enter|each|every|exec|exit|fetch|first|flatten|get|headers|help|histogram|history|if|inc|insert|into-int|kill|last|lines|ls|match|merge|mkdir|move|mv|n|nth|open|p|parse|pivot|post|prepend|ps|pwd|range|reduce|reject|rename|reverse|rm|s3|save|select|selector|set|set-env|seq|shells|shuffle|size|sleep|sort-by|source|split-by|start|sys|table|tags|textview|touch|tree|uniq|update|version|where|which|with-env|wrap|xpath)\\b"
22-
},
2319
{
2420
"name":"keyword.other.nushell",
2521
"match": "\\b(autoenv\\strust|autoenv\\suntrust|chart\\sbar|chart\\sline|config\\sclear|config\\sget|config\\sload|config\\spath|config\\sremove|config\\sset|config\\sset_into|date\\sformat|date\\slist-timezone|date\\snow|date\\sto-table|date\\sto-timezoneeach\\sgroup|each\\swindow|format\\sfilesize|from\\sbson|from\\scsv|from\\seml|from\\sics|from\\sini|from\\sjson|from\\sods|from\\ssqlite|from\\sssv|from\\stoml|from\\stsv|from\\surl|from\\svcf|from\\sxlsx|from\\sxml|from\\syaml|from\\syml|group-by\\sdate|hash\\sbase64|keep\\suntil|keep\\swhile|math\\sabs|math\\savg|math\\sceil|math\\seval|math\\sfloor|math\\smax|math\\smedian|math\\smin|math\\smode|math\\sproduct|math\\sround|math\\sstddev|math\\ssum|math\\svariance|path\\sbasename|path\\sdirname|path\\sexists|path\\sexpand|path\\sextension|path\\sfilestem|path\\stype|random\\sbool|random\\schars|random\\sdecimal|random\\sdice|random\\sinteger|random\\suuid|seq\\sdate|skip\\suntil|skip\\swhile|split\\schars|split\\scolumn|split\\srow|str\\scamel-case|str\\scapitalize|str\\scollect|str\\scontains|str\\sdowncase|str\\sends-with|str\\sfind-replace|str\\sfrom|str\\sindex-of|str\\skebab-case|str\\slength|str\\slpad|str\\sltrim|str\\spascal-case|str\\sreverse|str\\srpad|str\\srtrim|str\\sscreaming-snake-case|str\\sset|str\\ssnake-case|str\\sstarts-with|str\\ssubstring|str\\sto-datetime|str\\sto-decimal|str\\sto-int|str\\strim|str\\supcase|to\\sbson|to\\scsv|to\\shtml|to\\sjson|to\\smd|to\\ssqlite|to\\stoml|to\\stsv|to\\surl|to\\sxml|to\\syaml|url\\shost|url\\spath|url\\squery|url\\sscheme)\\b"
22+
},
23+
{
24+
"match": "(?!\\-|_).\\b(ansi|append|autoview|benchmark|binaryview|build-string|cal|cd|char|clear|clip|compact|count|cp|debug|default|describe|do|drop|du|echo|empty\\?|enter|each|every|exec|exit|fetch|first|flatten|get|headers|help|histogram|history|if|inc|insert|into-int|kill|last|lines|ls|match|merge|mkdir|move|mv|n|nth|open|p|parse|pivot|post|prepend|ps|pwd|range|reduce|reject|rename|reverse|rm|s3|save|select|selector|set|set-env|seq|shells|shuffle|size|sleep|sort-by|source|split-by|start|sys|table|tags|textview|touch|tree|uniq|update|version|where|which|with-env|wrap|xpath)\\b",
25+
"name": "keyword",
26+
"captures": {
27+
"1":{
28+
"name":"keyword.control.nushell"
29+
},
30+
"2":{
31+
"name":"keyword.control.other.nushell"
32+
}
33+
}
2634
}
2735
]
2836
},

0 commit comments

Comments
 (0)