Skip to content

Commit

Permalink
fix(theme): disable fuzztag render in x-string
Browse files Browse the repository at this point in the history
  • Loading branch information
WAY29 committed Feb 1, 2024
1 parent 25d5e34 commit 9d32213
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/renderer/src/main/src/utils/monacoSpec/yakEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,23 +322,24 @@ export const setUpYaklangMonaco = () => {
[/[\/*]/, 'comment.doc']
],

// disable fuzztag because of monaco editor bug
xrawstring: [
[/{{/, "fuzz.tag.inner", "@fuzz_tag"],
// [/{{/, "fuzz.tag.inner", "@fuzz_tag"],
[/@escapes/, 'string.escape'],
[/[^`]/, 'string'],
[/`/, 'string', '@pop']
],

xstring: [
[/{{/, "fuzz.tag.inner", "@fuzz_tag"],
// [/{{/, "fuzz.tag.inner", "@fuzz_tag"],
[/@escapes/, 'string.escape'],
[/[^\\"]+/, 'string'],
[/\\./, 'string.escape.invalid'],
[/"/, 'string', '@pop']
],

xstring2: [
[/{{/, "fuzz.tag.inner", "@fuzz_tag"],
// [/{{/, "fuzz.tag.inner", "@fuzz_tag"],
[/@escapes/, 'string.escape'],
[/[^\\']/, 'string'],
[/'/, 'string', '@pop']
Expand Down

0 comments on commit 9d32213

Please sign in to comment.