tree-sitter-yaml
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -5,2 +5,11 @@ # Changelog | ||
# [0.5.0](https://github.com/ikatyang/tree-sitter-yaml/compare/v0.4.1...v0.5.0) (2021-04-18) | ||
### Features | ||
* expose `anchor_name`, `alias_name`, `&`, and `*` ([#24](https://github.com/ikatyang/tree-sitter-yaml/issues/24)) ([b77b438](https://github.com/ikatyang/tree-sitter-yaml/commit/b77b438)) | ||
## [0.4.1](https://github.com/ikatyang/tree-sitter-yaml/compare/v0.4.0...v0.4.1) (2021-03-21) | ||
@@ -7,0 +16,0 @@ |
@@ -53,5 +53,5 @@ module.exports = grammar({ | ||
$._r_tag, $._br_tag, $._b_tag, // !tag | ||
$._r_acr, $._br_acr, $._b_acr, // &id | ||
$._r_als, $._br_als, $._b_als, // *id | ||
$._r_tag, $._br_tag, $._b_tag, // !tag | ||
$._r_acr_bgn, $._br_acr_bgn, $._b_acr_bgn, $._r_acr_ctn, // &id | ||
$._r_als_bgn, $._br_als_bgn, $._b_als_bgn, $._r_als_ctn, // *id | ||
@@ -458,2 +458,12 @@ $._bl, | ||
_b_als_val: $ => $._b_als, | ||
_r_als: $ => seq($._r_als_bgn, $._r_als_ctn), | ||
_br_als: $ => seq($._br_als_bgn, $._r_als_ctn), | ||
_b_als: $ => seq($._b_als_bgn, $._r_als_ctn), | ||
// anchor | ||
_r_acr: $ => seq($._r_acr_bgn, $._r_acr_ctn), | ||
_br_acr: $ => seq($._br_acr_bgn, $._r_acr_ctn), | ||
_b_acr: $ => seq($._b_acr_bgn, $._r_acr_ctn), | ||
}, | ||
@@ -474,4 +484,6 @@ }); | ||
..._("anchor", "_r_acr", "_br_acr", "_b_acr"), | ||
..._("anchor_name", "_r_acr_ctn"), | ||
..._("flow_node", "_r_als_val", "_br_als_val", "_b_als_val"), | ||
..._("alias", "_r_als", "_br_als", "_b_als"), | ||
..._("alias_name", "_r_als_ctn"), | ||
..._("document", "_bgn_imp_doc", "_imp_doc"), | ||
@@ -534,2 +546,4 @@ ..._(["document"], "_drs_doc", "_exp_doc", "_doc_end", | ||
..._("'", "_r_sqt_str_end", "_br_sqt_str_end"), | ||
..._("*", "_r_als_bgn", "_br_als_bgn", "_b_als_bgn"), | ||
..._("&", "_r_acr_bgn", "_br_acr_bgn", "_b_acr_bgn"), | ||
}); | ||
@@ -536,0 +550,0 @@ |
{ | ||
"name": "tree-sitter-yaml", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "YAML grammar for tree-sitter", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
[ | ||
{ | ||
"type": "alias", | ||
"named": true, | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "alias_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "anchor", | ||
"named": true, | ||
"fields": {}, | ||
"children": { | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
{ | ||
"type": "anchor_name", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "block_mapping", | ||
@@ -393,2 +423,6 @@ "named": true, | ||
{ | ||
"type": "&", | ||
"named": false | ||
}, | ||
{ | ||
"type": "'", | ||
@@ -398,2 +432,6 @@ "named": false | ||
{ | ||
"type": "*", | ||
"named": false | ||
}, | ||
{ | ||
"type": ",", | ||
@@ -435,7 +473,7 @@ "named": false | ||
{ | ||
"type": "alias", | ||
"type": "alias_name", | ||
"named": true | ||
}, | ||
{ | ||
"type": "anchor", | ||
"type": "anchor_name", | ||
"named": true | ||
@@ -442,0 +480,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1461940
7998