diff --git a/CHANGELOG.md b/CHANGELOG.md index 04fe51d..4354616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,22 @@ # Changelog -All notable changes to this project will be documented in this file. +## 0.1.2 - 2025-05-30 -## [0.1.1] - 2025-05-14 +### Bug Fixes -### ⚙️ Miscellaneous Tasks +* fix: capture backtick escaped variable -- Add R logo -- Swtich to npm ci -- Update readme +### Other -## [0.1.0] - 2025-05-13 +* fix: capture backtick escaped variable ([#2](https://github.com/randy3k/radian/issues/2)) -### ⚙️ Miscellaneous Tasks +**Full Changelog**: https://github.com/randy3k/radian/compare/v0.1.1...v0.1.2 -- Add github action script -- Add publish action +## 0.1.0 - 2025-05-13 + +### Other + +* init +* Add r and rmarkdown syntaxes diff --git a/cliff.toml b/cliff.toml new file mode 100644 index 0000000..135c7a1 --- /dev/null +++ b/cliff.toml @@ -0,0 +1,75 @@ +[remote.github] +owner = "REditorSupport" +repo = "vscode-R-syntax" + +[changelog] +header = """ +# Changelog + +""" +body = """ +{% if version %}\ + ## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}\ +{% else %}\ + ## Unreleased\ +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + + ### {{ group | upper_first }} + {% for commit in commits %} + {% set_global issues = [] %}\ + {% if commit.remote.pr_number %}\ + {% set_global issues = issues | concat(with=commit.remote.pr_number) %}\ + {%- endif %}\ + {% for link in commit.links %}\ + {% set_global issues = issues | concat(with=link.text | split(pat="#") | last) %}\ + {%- endfor -%}\ + {% if commit.remote.pr_title -%}\ + {%- set commit_message = commit.remote.pr_title -%}\ + {%- else -%}\ + {%- set commit_message = commit.message -%}\ + {%- endif -%}\ + * {{ commit_message | split(pat="\n") | first | trim }}\ + {% set_global issues = issues | unique %}\ + {% if issues | length > 0 %} (\ + {% for issue in issues %}\ + [#{{ issue }}](https://github.com/randy3k/radian/issues/{{ issue }})\ + {% if not loop.last %}, {% endif %}\ + {%- endfor -%})\ + {%- endif %}\ + {%- endfor -%}\n +{% endfor %}\ +{% if version %} + {% if previous.version %} + **Full Changelog**: https://github.com/randy3k/radian/compare/{{ previous.version }}...{{ version }} + {% endif %} +{% else -%} + {% raw %}\n{% endraw %} +{% endif %}\ +""" +trim = true +footer = """ + +""" +postprocessors = [] + +[git] +conventional_commits = false +split_commits = false +commit_parsers = [ + { message = "(?i)^feat\\b", group = "Features" }, + { message = "(?i)^fix\\b", group = "Bug Fixes" }, + { message = "(?i)^docs\\b", group = "Documentation" }, + { message = "(?i)^perf\\b", group = "Performance" }, + { message = "(?i)^refactor\\b", group = "Refactor" }, + { message = "(?i)^style\\b", group = "Styling" }, + { message = "(?i)^test\\b", group = "Testing" }, + { message = "(?i)^(chore|bump to|Merge branch)\\b", skip = true }, + { body = ".*", group = "Other" }, +] +link_parsers = [ + { pattern = "(?i)\\b(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved) #(\\d+)", href = "https://github.com/randy3k/radian/issues/$1" }, +] +filter_commits = true +topo_order = false +sort_commits = "oldest" diff --git a/package.json b/package.json index 111f89c..c379ce6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "r-syntax", "displayName": "R Syntax", "description": "R Synxtax Highlight for Visual Studio Code", - "version": "0.1.1", + "version": "0.1.2", "author": "REditorSupport", "type": "module", "license": "SEE LICENSE IN LICENSE", diff --git a/syntaxes/r.json b/syntaxes/r.json index 9bb60f2..d18441d 100644 --- a/syntaxes/r.json +++ b/syntaxes/r.json @@ -40,6 +40,9 @@ }, { "include": "#function-calls" + }, + { + "match": "(?:[a-zA-Z._][\\w.]*|`[^`]+`)" } ], "repository": { diff --git a/syntaxes/r.yaml b/syntaxes/r.yaml index c78da4b..1aff4c2 100644 --- a/syntaxes/r.yaml +++ b/syntaxes/r.yaml @@ -25,6 +25,7 @@ patterns: - include: "#lambda-functions" - include: "#builtin-functions" - include: "#function-calls" + - match: '{{var}}' repository: accessor: diff --git a/tests/testdata/basics.R b/tests/testdata/basics.R index 0dcfc01..dcea8d2 100644 --- a/tests/testdata/basics.R +++ b/tests/testdata/basics.R @@ -152,3 +152,7 @@ foo::median my_vector |> # ^^ keyword.operator.pipe.r foo() + +# issue #1 +foo(x = `#afd`) +# ^^^^ -comment