From 842bcaeea6f8912c668f6935c2d86601cf205220 Mon Sep 17 00:00:00 2001 From: James Yu Date: Wed, 11 Sep 2024 11:37:41 +0800 Subject: [PATCH] Remove duplicated brace from \bigg and friends in latex-document --- data/packages/latex-document.json | 12 ++++++------ dev/packages/latex-document.json | 12 ++++++------ dev/parse-cwl.ts | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/data/packages/latex-document.json b/data/packages/latex-document.json index e6cc19d2e..6bb32cfc1 100644 --- a/data/packages/latex-document.json +++ b/data/packages/latex-document.json @@ -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|" } }, @@ -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|" } }, diff --git a/dev/packages/latex-document.json b/dev/packages/latex-document.json index e6cc19d2e..6bb32cfc1 100644 --- a/dev/packages/latex-document.json +++ b/dev/packages/latex-document.json @@ -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|" } }, @@ -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|" } }, diff --git a/dev/parse-cwl.ts b/dev/parse-cwl.ts index a369654ed..615a3ba1b 100644 --- a/dev/parse-cwl.ts +++ b/dev/parse-cwl.ts @@ -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