Skip to content

Commit

Permalink
Merge pull request #2795 from mxaddict/master
Browse files Browse the repository at this point in the history
Added JSONC and aws credentials to the syntax mappings
  • Loading branch information
sharkdp authored Feb 23, 2024
2 parents 7604fe5 + 0080b04 commit 708c74f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

- `cmd-help`: scope subcommands followed by other terms, and other misc improvements, see #2819 (@victor-gp)
- Upgrade JQ syntax, see #2820 (@dependabot[bot])
- Added auto detect syntax for `.jsonc` #2795 (@mxaddict)
- Added auto detect syntax for `.aws/{config,credentials}` #2795 (@mxaddict)

## Themes

Expand Down
2 changes: 2 additions & 0 deletions src/syntax_mapping/builtins/common/50-aws-credentials.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mappings]
"INI" = ["**/.aws/credentials", "**/.aws/config"]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# JSON Lines is a simple variation of JSON #2535
[mappings]
"JSON" = ["*.jsonl"]
"JSON" = ["*.jsonl", "*.jsonc"]

0 comments on commit 708c74f

Please sign in to comment.