diff options
author | 2021-10-30 21:25:41 +0200 | |
---|---|---|
committer | 2021-10-31 19:26:15 +0100 | |
commit | ac73c31388afdffe7e56236cd619a7a08eb1fac8 (patch) | |
tree | d36537cd22412960e49b5c5ef47f349c545edef9 /language-web/src/main/js/language/problemLanguageSupport.ts | |
parent | feat(web): semantic highlighting (diff) | |
download | refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.tar.gz refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.tar.zst refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.zip |
feat(web): use 4 space for indentation
Diffstat (limited to 'language-web/src/main/js/language/problemLanguageSupport.ts')
-rw-r--r-- | language-web/src/main/js/language/problemLanguageSupport.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/language-web/src/main/js/language/problemLanguageSupport.ts b/language-web/src/main/js/language/problemLanguageSupport.ts index c9e61b31..80d25d71 100644 --- a/language-web/src/main/js/language/problemLanguageSupport.ts +++ b/language-web/src/main/js/language/problemLanguageSupport.ts | |||
@@ -3,6 +3,7 @@ import { | |||
3 | foldInside, | 3 | foldInside, |
4 | foldNodeProp, | 4 | foldNodeProp, |
5 | indentNodeProp, | 5 | indentNodeProp, |
6 | indentUnit, | ||
6 | LanguageSupport, | 7 | LanguageSupport, |
7 | LRLanguage, | 8 | LRLanguage, |
8 | } from '@codemirror/language'; | 9 | } from '@codemirror/language'; |
@@ -79,5 +80,7 @@ const problemLanguage = LRLanguage.define({ | |||
79 | }); | 80 | }); |
80 | 81 | ||
81 | export function problemLanguageSupport(): LanguageSupport { | 82 | export function problemLanguageSupport(): LanguageSupport { |
82 | return new LanguageSupport(problemLanguage); | 83 | return new LanguageSupport(problemLanguage, [ |
84 | indentUnit.of(' '), | ||
85 | ]); | ||
83 | } | 86 | } |