Skip to content

Commit f6d2930

Browse files
authored
Support new attribute shorthand
Add support for new attribute shorthand: ```just [attr_key: "value"] foo: echo "bar" ``` https://github.com/casey/just/blob/fa5770e71aa93402068ebc9e179e493fc94f8532/tests/attributes.rs#L202-L205
1 parent ca17d4f commit f6d2930

File tree

8 files changed

+3840
-3602
lines changed

8 files changed

+3840
-3602
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build/
1212
.build/
1313
log.html
1414
*.wasm
15+
*.dylib
1516
fuzzer-out/
1617

1718
# Fuzzer items

fuzzer/build-corpus.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Turn our tests into a corpus for the fuzzer (one test per file)
3-
"""
2+
"""Turn our tests into a corpus for the fuzzer (one test per file)"""
43

54
from pathlib import Path
65
import re

grammar.js

+1
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ module.exports = grammar({
236236
field("argument", comma_sep1($.string)),
237237
")",
238238
),
239+
seq($.identifier, ":", field("argument", $.string)),
239240
),
240241
),
241242
"]",

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ configure-tree-sitter:
279279
j = json.load(f)
280280
f.seek(0)
281281
282-
# Add ths tree-sitter-just directory to the config file
282+
# Add the tree-sitter-just directory to the config file
283283
parent_dir = os.path.dirname(r"{{ justfile_directory() }}")
284284
j["parser-directories"].append(parent_dir)
285285
json.dump(j, f)

src/grammar.json

+42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)