Skip to content

Commit

Permalink
Highligh matching parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Sep 5, 2024
1 parent 626e739 commit e3a0aa9
Showing 1 changed file with 286 additions and 70 deletions.
356 changes: 286 additions & 70 deletions language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,46 @@
{
"comments": {
"lineComment": "--",
"blockComment": ["{-", "-}"]
"blockComment": [
"{-",
"-}"
]
}, // symbols used as brackets
"brackets": [],
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
],
"autoClosingPairs": [
{
"open": "{- ",
"close": " -}",
"notIn": ["comment"]
"notIn": [
"comment"
]
},
{
"open": "{-- ",
"close": " --}",
"notIn": ["comment"]
"notIn": [
"comment"
]
},
{
"open": "{",
"close": "}",
"notIn": ["comment"]
"notIn": [
"comment"
]
},
{
"open": "[",
Expand All @@ -33,74 +55,268 @@
{
"open": "\"",
"close": "\"",
"notIn": ["string"]
"notIn": [
"string"
]
},
["⁅", "⁆"],
["⟮", "⟯"],
["⁽", "⁾"],
["₍", "₎"],
["〈", "〉"],
["⟅", "⟆"],
["⟦", "⟧"],
["⟨", "⟩"],
["⟪", "⟫"],
["⦃", "⦄"],
["〈", "〉"],
["《", "》"],
["‹", "›"],
["«", "»"],
["「", "」"],
["『", "』"],
["【", "】"],
["〔", "〕"],
["〖", "〗"],
["〚", "〛"],
["︵", "︶"],
["︷", "︸"],
["︹", "︺"],
["︻", "︼"],
["︽", "︾"],
["︿", "﹀"],
["﹁", "﹂"],
["﹃", "﹄"],
["﹙", "﹚"],
["﹛", "﹜"],
["﹝", "﹞"]
[
"⁅",
"⁆"
],
[
"⟮",
"⟯"
],
[
"⁽",
"⁾"
],
[
"₍",
"₎"
],
[
"〈",
"〉"
],
[
"⟅",
"⟆"
],
[
"⟦",
"⟧"
],
[
"⟨",
"⟩"
],
[
"⟪",
"⟫"
],
[
"⦃",
"⦄"
],
[
"〈",
"〉"
],
[
"《",
"》"
],
[
"‹",
"›"
],
[
"«",
"»"
],
[
"「",
"」"
],
[
"『",
"』"
],
[
"【",
"】"
],
[
"〔",
"〕"
],
[
"〖",
"〗"
],
[
"〚",
"〛"
],
[
"︵",
"︶"
],
[
"︷",
"︸"
],
[
"︹",
"︺"
],
[
"︻",
"︼"
],
[
"︽",
"︾"
],
[
"︿",
"﹀"
],
[
"﹁",
"﹂"
],
[
"﹃",
"﹄"
],
[
"﹙",
"﹚"
],
[
"﹛",
"﹜"
],
[
"﹝",
"﹞"
]
],
"surroundingPairs": [
["(", ")"],
["[", "]"],
["⁅", "⁆"],
["⁽", "⁾"],
["₍", "₎"],
["〈", "〉"],
["⎴", "⎵"],
["⟅", "⟆"],
["⟦", "⟧"],
["⟨", "⟩"],
["⟪", "⟫"],
["⦃", "⦄"],
["‹", "›"],
["«", "»"],
["「", "」"],
["『", "』"],
["【", "】"],
["〔", "〕"],
["〖", "〗"],
["〚", "〛"],
["︵", "︶"],
["︷", "︸"],
["︹", "︺"],
["︻", "︼"],
["︽", "︾"],
["︿", "﹀"],
["﹁", "﹂"],
["﹃", "﹄"],
["﹙", "﹚"],
["﹛", "﹜"],
["﹝", "﹞"],
["「", "」"],
["\"", "\""]
[
"(",
")"
],
[
"[",
"]"
],
[
"⁅",
"⁆"
],
[
"⁽",
"⁾"
],
[
"₍",
"₎"
],
[
"〈",
"〉"
],
[
"⎴",
"⎵"
],
[
"⟅",
"⟆"
],
[
"⟦",
"⟧"
],
[
"⟨",
"⟩"
],
[
"⟪",
"⟫"
],
[
"⦃",
"⦄"
],
[
"‹",
"›"
],
[
"«",
"»"
],
[
"「",
"」"
],
[
"『",
"』"
],
[
"【",
"】"
],
[
"〔",
"〕"
],
[
"〖",
"〗"
],
[
"〚",
"〛"
],
[
"︵",
"︶"
],
[
"︷",
"︸"
],
[
"︹",
"︺"
],
[
"︻",
"︼"
],
[
"︽",
"︾"
],
[
"︿",
"﹀"
],
[
"﹁",
"﹂"
],
[
"﹃",
"﹄"
],
[
"﹙",
"﹚"
],
[
"﹛",
"﹜"
],
[
"﹝",
"﹞"
],
[
"「",
"」"
],
[
"\"",
"\""
]
],
"wordPattern": "[^(\\s|;|\\{|\\}|\\(|\\)|@)]+",
"folding": {
Expand Down

0 comments on commit e3a0aa9

Please sign in to comment.