Skip to content
Open
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
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ ReScript (res,resi)
ReStructuredText (rst)
Rich Text Format (rtf)
Robot Framework (robot)
RON (ron)
RPG (rpg)
RPGLE (rpgle)
Ruby (rb)
Expand Down
39 changes: 39 additions & 0 deletions examples/language/RON.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// testing
Config(
title: "RON examples",

int_value: 42,
float_value: 3.1415,
is_active: true,
initial: 'a',

colors: ["red", "green", "blue"],

/* servers */
servers: [
Server(
name: "alpha",
ip: "192.168.1.1",
),
Server(
name: "beta",
ip: "192.168.1.2",
),
],

database: (
server: "127.0.1.1",
ports: [8001, 8002, 8003],
connection_max: 5000,
enabled: true,
),

// nested
owner: Some((
name: "scc",
contact: {
"address": "test",
"phone": "+xx-xxx-xxx-xxxx",
},
)),
)
37 changes: 37 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6631,6 +6631,43 @@
"quotes": [],
"shebangs": ["Rscript"]
},
"RON": {
"complexitychecks": [],
"extensions": ["ron"],
"line_comment": ["//"],
"multi_line": [["/*", "*/"]],
"nestedmultiline": true,
"quotes": [
{
"end": "\"",
"start": "\""
},
{
"end": "'",
"start": "'"
},
{
"ignoreEscape": true,
"end": "\"",
"start": "r\""
},
{
"ignoreEscape": true,
"end": "\"#",
"start": "r#\""
},
{
"ignoreEscape": true,
"end": "\"##",
"start": "r##\""
},
{
"ignoreEscape": true,
"end": "\"###",
"start": "r###\""
}
]
},
"RPG": {
"complexitychecks": ["COMP", "IF", "ELSEIF", "WHEN", "DOW", "DOU", "FOR", "IFEQ", "IFNE", "IFLT", "IFLE", "IFGT", "IFGE", "WHENEQ", "WHENNE", "WHENLT", "WHENLE", "WHENGT", "WHENGE", "DOWEQ", "DOWNE", "DOWLT", "DOWLE", "DOWGT", "DOWGE", "DOUEQ", "DOUNE", "DOULT", "DOULE", "DOUGT", "DOUGE", "CABEQ", "CABNE", "CABLT", "CABLE", "CABGT", "CABGE", "CASEQ", "CASNE", "CASLT", "CASLE", "CASGT", "CASGE"],
"caseinsensitive": true,
Expand Down
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,7 @@ func TestSpecificLanguages(t *testing.T) {
"Rebol",
"Redscript",
"Rich Text Format",
"RON",
"Ruby",
"Rust",
"Scala",
Expand Down
71 changes: 71 additions & 0 deletions processor/constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.