mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	ckeditor 5.60.0
This commit is contained in:
		
							
								
								
									
										6
									
								
								libraries/codemirror/mode/pegjs/pegjs.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								libraries/codemirror/mode/pegjs/pegjs.js
									
									
									
									
										vendored
									
									
								
							| @@ -39,7 +39,7 @@ CodeMirror.defineMode("pegjs", function (config) { | ||||
|         stream.next(); // Skip quote | ||||
|         state.inString = true; // Update state | ||||
|       } | ||||
|       if (!state.inString && !state.inComment && stream.match(/^\/\*/)) { | ||||
|       if (!state.inString && !state.inComment && stream.match('/*')) { | ||||
|         state.inComment = true; | ||||
|       } | ||||
|  | ||||
| @@ -59,7 +59,7 @@ CodeMirror.defineMode("pegjs", function (config) { | ||||
|         return state.lhs ? "property string" : "string"; // Token style | ||||
|       } else if (state.inComment) { | ||||
|         while (state.inComment && !stream.eol()) { | ||||
|           if (stream.match(/\*\//)) { | ||||
|           if (stream.match('*/')) { | ||||
|             state.inComment = false; // Clear flag | ||||
|           } else { | ||||
|             stream.match(/^.[^\*]*/); | ||||
| @@ -76,7 +76,7 @@ CodeMirror.defineMode("pegjs", function (config) { | ||||
|         stream.next(); | ||||
|         state.inCharacterClass = true; | ||||
|         return 'bracket'; | ||||
|       } else if (stream.match(/^\/\//)) { | ||||
|       } else if (stream.match('//')) { | ||||
|         stream.skipToEnd(); | ||||
|         return "comment"; | ||||
|       } else if (state.braced || stream.peek() === '{') { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user