mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	codemirror updated to 5.47.0
This commit is contained in:
		
							
								
								
									
										8
									
								
								libraries/codemirror/mode/php/php.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								libraries/codemirror/mode/php/php.js
									
									
									
									
										vendored
									
									
								
							| @@ -160,7 +160,7 @@ | ||||
|       if (!isPHP) { | ||||
|         if (stream.match(/^<\?\w*/)) { | ||||
|           state.curMode = phpMode; | ||||
|           if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, "")) | ||||
|           if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, "", "")) | ||||
|           state.curState = state.php; | ||||
|           return "meta"; | ||||
|         } | ||||
| @@ -213,11 +213,11 @@ | ||||
|  | ||||
|       token: dispatch, | ||||
|  | ||||
|       indent: function(state, textAfter) { | ||||
|       indent: function(state, textAfter, line) { | ||||
|         if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) || | ||||
|             (state.curMode == phpMode && /^\?>/.test(textAfter))) | ||||
|           return htmlMode.indent(state.html, textAfter); | ||||
|         return state.curMode.indent(state.curState, textAfter); | ||||
|           return htmlMode.indent(state.html, textAfter, line); | ||||
|         return state.curMode.indent(state.curState, textAfter, line); | ||||
|       }, | ||||
|  | ||||
|       blockCommentStart: "/*", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user