Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RON (Rusty Object Notation) #6849

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,9 @@
[submodule "vendor/grammars/vscode-rbs-syntax"]
path = vendor/grammars/vscode-rbs-syntax
url = https://github.com/soutaro/vscode-rbs-syntax.git
[submodule "vendor/grammars/vscode-ron"]
path = vendor/grammars/vscode-ron
url = https://github.com/a5huynh/vscode-ron.git
[submodule "vendor/grammars/vscode-scala-syntax"]
path = vendor/grammars/vscode-scala-syntax
url = https://github.com/scala/vscode-scala-syntax
Expand Down
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,8 @@ vendor/grammars/vscode-python:
- source.pip-requirements
vendor/grammars/vscode-rbs-syntax:
- source.rbs
vendor/grammars/vscode-ron:
- source.ron
vendor/grammars/vscode-scala-syntax:
- source.scala
vendor/grammars/vscode-singularity:
Expand Down
8 changes: 8 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5768,6 +5768,14 @@ RMarkdown:
- ".rmd"
tm_scope: text.md
language_id: 313
RON:
type: data
color: "#a62c00"
extensions:
- ".ron"
ace_mode: rust
tm_scope: source.ron
language_id: 587855233
RPC:
type: programming
aliases:
Expand Down
15 changes: 15 additions & 0 deletions samples/RON/config.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Config(
root: ".",
color: Auto,
include_hidden: false,
max_rows: 10,
exclude: [
"target/*",
"assets/*",
],
output: Output(
path: Some("out"),
format: Pretty,
),
timeout: 3600.0,
)
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **REALbasic:** [peters-ben-0007/VBDotNetSyntax](https://github.com/peters-ben-0007/VBDotNetSyntax)
- **REXX:** [mblocker/rexx-sublime](https://github.com/mblocker/rexx-sublime)
- **RMarkdown:** [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language)
- **RON:** [a5huynh/vscode-ron](https://github.com/a5huynh/vscode-ron)
- **RPC:** [textmate/c.tmbundle](https://github.com/textmate/c.tmbundle)
- **RPGLE:** [barrettotte/vscode-ibmi-languages](https://github.com/barrettotte/vscode-ibmi-languages)
- **RPM Spec:** [waveclaw/language-rpm-spec](https://github.com/waveclaw/language-rpm-spec)
Expand Down
1 change: 1 addition & 0 deletions vendor/grammars/vscode-ron
Submodule vscode-ron added at 8a6f07
19 changes: 19 additions & 0 deletions vendor/licenses/git_submodule/vscode-ron.dep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: vscode-ron
version: 8a6f077d64092fa68d638e956784b27b49431240
type: git_submodule
homepage: https://github.com/a5huynh/vscode-ron.git
license: mit
licenses:
- sources: LICENSE.md
text: |+
Copyright 2019 Andrew Huynh

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

notices: []
...
Loading