mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	upgrade code mirror to 5.65.15 and fix modes requiring multiplex or overlay, fixes #4279
This commit is contained in:
		
							
								
								
									
										3
									
								
								libraries/codemirror/mode/pegjs/pegjs.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								libraries/codemirror/mode/pegjs/pegjs.js
									
									
									
									
										vendored
									
									
								
							| @@ -31,8 +31,6 @@ CodeMirror.defineMode("pegjs", function (config) { | ||||
|       }; | ||||
|     }, | ||||
|     token: function (stream, state) { | ||||
|       if (stream) | ||||
|  | ||||
|       //check for state changes | ||||
|       if (!state.inString && !state.inComment && ((stream.peek() == '"') || (stream.peek() == "'"))) { | ||||
|         state.stringType = stream.peek(); | ||||
| @@ -43,7 +41,6 @@ CodeMirror.defineMode("pegjs", function (config) { | ||||
|         state.inComment = true; | ||||
|       } | ||||
|  | ||||
|       //return state | ||||
|       if (state.inString) { | ||||
|         while (state.inString && !stream.eol()) { | ||||
|           if (stream.peek() === state.stringType) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user