Skip to content

Commit

Permalink
Remove duplicated brace from \bigg and friends in latex-document
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 11, 2024
1 parent 7b2374b commit 842bcae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions data/packages/latex-document.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
{
"name": "Bigg(",
"arg": {
"format": "()",
"format": "",
"snippet": "Bigg(${1}\\Bigg)"
}
},
{
"name": "Bigg[",
"arg": {
"format": "[]",
"format": "",
"snippet": "Bigg[${1}\\Bigg]"
}
},
{
"name": "Bigg|",
"arg": {
"format": "||",
"format": "",
"snippet": "Bigg|${1}\\Bigg|"
}
},
Expand All @@ -81,21 +81,21 @@
{
"name": "bigg(",
"arg": {
"format": "()",
"format": "",
"snippet": "bigg(${1}\\bigg)"
}
},
{
"name": "bigg[",
"arg": {
"format": "[]",
"format": "",
"snippet": "bigg[${1}\\bigg]"
}
},
{
"name": "bigg|",
"arg": {
"format": "||",
"format": "",
"snippet": "bigg|${1}\\bigg|"
}
},
Expand Down
12 changes: 6 additions & 6 deletions dev/packages/latex-document.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@
{
"name": "Bigg(",
"arg": {
"format": "()",
"format": "",
"snippet": "Bigg(${1}\\Bigg)"
}
},
{
"name": "Bigg[",
"arg": {
"format": "[]",
"format": "",
"snippet": "Bigg[${1}\\Bigg]"
}
},
{
"name": "Bigg|",
"arg": {
"format": "||",
"format": "",
"snippet": "Bigg|${1}\\Bigg|"
}
},
Expand All @@ -81,21 +81,21 @@
{
"name": "bigg(",
"arg": {
"format": "()",
"format": "",
"snippet": "bigg(${1}\\bigg)"
}
},
{
"name": "bigg[",
"arg": {
"format": "[]",
"format": "",
"snippet": "bigg[${1}\\bigg]"
}
},
{
"name": "bigg|",
"arg": {
"format": "||",
"format": "",
"snippet": "bigg|${1}\\bigg|"
}
},
Expand Down
2 changes: 1 addition & 1 deletion dev/parse-cwl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function parseMacro(pkg: PackageRaw, line: string, ifCond?: string): void {
const pairs = { '(': ')', '[': ']', '|': '|' }
const macro: MacroRaw = { name: match[1] + (match[2] ?? '') }
if (match[2] === '(' || match[2] === '[' || match[2] === '|') {
macro.arg = { format: match[2] + pairs[match[2]], snippet: `${match[1]}${match[2]}$\{1}\\${match[1]}${pairs[match[2]]}` }
macro.arg = { format: '', snippet: `${match[1]}${match[2]}$\{1}\\${match[1]}${pairs[match[2]]}` }
}
pkg.macros.push(macro)
return
Expand Down

0 comments on commit 842bcae

Please sign in to comment.