Fix indentation?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4771 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
86531bfd7e
commit
b52e99c958
2
deps/codemirror/cm6.js
vendored
2
deps/codemirror/cm6.js
vendored
File diff suppressed because one or more lines are too long
8
deps/codemirror_src/editor.mjs
vendored
8
deps/codemirror_src/editor.mjs
vendored
@ -6,8 +6,8 @@ import {css} from "@codemirror/lang-css"
|
|||||||
import {search} from "@codemirror/search"
|
import {search} from "@codemirror/search"
|
||||||
import {oneDark} from "@codemirror/theme-one-dark"
|
import {oneDark} from "@codemirror/theme-one-dark"
|
||||||
import {lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap, highlightWhitespace} from '@codemirror/view';
|
import {lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap, highlightWhitespace} from '@codemirror/view';
|
||||||
import {foldGutter, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap} from '@codemirror/language';
|
import {foldGutter, indentUnit, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap} from '@codemirror/language';
|
||||||
import {history, defaultKeymap, historyKeymap} from '@codemirror/commands';
|
import {history, defaultKeymap, historyKeymap, indentWithTab} from '@codemirror/commands';
|
||||||
import {highlightSelectionMatches, searchKeymap} from '@codemirror/search';
|
import {highlightSelectionMatches, searchKeymap} from '@codemirror/search';
|
||||||
import {autocompletion, closeBracketsKeymap, completionKeymap} from '@codemirror/autocomplete';
|
import {autocompletion, closeBracketsKeymap, completionKeymap} from '@codemirror/autocomplete';
|
||||||
import {lintKeymap} from '@codemirror/lint';
|
import {lintKeymap} from '@codemirror/lint';
|
||||||
@ -29,6 +29,7 @@ const extensions = [
|
|||||||
dropCursor(),
|
dropCursor(),
|
||||||
EditorState.allowMultipleSelections.of(true),
|
EditorState.allowMultipleSelections.of(true),
|
||||||
indentOnInput(),
|
indentOnInput(),
|
||||||
|
indentUnit.of('\t'),
|
||||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||||
bracketMatching(),
|
bracketMatching(),
|
||||||
autocompletion(),
|
autocompletion(),
|
||||||
@ -42,7 +43,8 @@ const extensions = [
|
|||||||
...historyKeymap,
|
...historyKeymap,
|
||||||
...foldKeymap,
|
...foldKeymap,
|
||||||
...completionKeymap,
|
...completionKeymap,
|
||||||
...lintKeymap
|
...lintKeymap,
|
||||||
|
indentWithTab,
|
||||||
]),
|
]),
|
||||||
javascript(),
|
javascript(),
|
||||||
html(),
|
html(),
|
||||||
|
Loading…
Reference in New Issue
Block a user