mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	chore(code): reintroduce bracket matching
This commit is contained in:
		
							parent
							
								
									ec72800b00
								
							
						
					
					
						commit
						df92ec9521
					
				| @ -1,6 +1,6 @@ | |||||||
| import { defaultKeymap, indentWithTab } from "@codemirror/commands"; | import { defaultKeymap, indentWithTab } from "@codemirror/commands"; | ||||||
| import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view"; | import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view"; | ||||||
| import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit } from "@codemirror/language"; | import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching } from "@codemirror/language"; | ||||||
| import { Compartment } from "@codemirror/state"; | import { Compartment } from "@codemirror/state"; | ||||||
| import { highlightSelectionMatches } from "@codemirror/search"; | import { highlightSelectionMatches } from "@codemirror/search"; | ||||||
| import byMimeType from "./syntax_highlighting.js"; | import byMimeType from "./syntax_highlighting.js"; | ||||||
| @ -29,6 +29,7 @@ export default class CodeMirror extends EditorView { | |||||||
|             syntaxHighlighting(defaultHighlightStyle), |             syntaxHighlighting(defaultHighlightStyle), | ||||||
|             highlightActiveLine(), |             highlightActiveLine(), | ||||||
|             highlightSelectionMatches(), |             highlightSelectionMatches(), | ||||||
|  |             bracketMatching(), | ||||||
|             lineNumbers(), |             lineNumbers(), | ||||||
|             indentUnit.of(" ".repeat(4)) |             indentUnit.of(" ".repeat(4)) | ||||||
|         ]; |         ]; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran