mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	attempt to fix syslog error highlighting
This commit is contained in:
		
							
								
								
									
										24
									
								
								assets/syntaxes/02_Extra/log.sublime-syntax
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								assets/syntaxes/02_Extra/log.sublime-syntax
									
									
									
									
										vendored
									
									
								
							| @@ -38,21 +38,21 @@ contexts: | ||||
|       scope: markup.underline.link.scheme.log | ||||
|       push: url-host | ||||
|   log_level_lines: | ||||
|     - match: ^(?=.*{{error}}) | ||||
|     - match: (?=.*{{error}}) | ||||
|       push: | ||||
|         - error_line | ||||
|         - error_line_meta | ||||
|         - main_pop_at_eol | ||||
|     - match: ^(?=.*{{warning}}) | ||||
|     - match: (?=.*{{warning}}) | ||||
|       push: | ||||
|         - warning_line | ||||
|         - warning_line_meta | ||||
|         - main_pop_at_eol | ||||
|     - match: ^(?=.*{{info}}) | ||||
|     - match: (?=.*{{info}}) | ||||
|       push: | ||||
|         - info_line | ||||
|         - info_line_meta | ||||
|         - main_pop_at_eol | ||||
|     - match: ^(?=.*{{debug}}) | ||||
|     - match: (?=.*{{debug}}) | ||||
|       push: | ||||
|         - debug_line | ||||
|         - debug_line_meta | ||||
|         - main_pop_at_eol | ||||
|   log_levels: | ||||
|     - match: '{{error}}' | ||||
| @@ -63,16 +63,16 @@ contexts: | ||||
|       scope: markup.info.log | ||||
|     - match: '{{debug}}' | ||||
|       scope: markup.info.log | ||||
|   error_line: | ||||
|   error_line_meta: | ||||
|     - meta_scope: meta.annotation.error-line.log | ||||
|     - include: immediately_pop | ||||
|   warning_line: | ||||
|   warning_line_meta: | ||||
|     - meta_scope: meta.annotation.warning-line.log | ||||
|     - include: immediately_pop | ||||
|   info_line: | ||||
|   info_line_meta: | ||||
|     - meta_scope: meta.annotation.info-line.log | ||||
|     - include: immediately_pop | ||||
|   debug_line: | ||||
|   debug_line_meta: | ||||
|     - meta_scope: meta.annotation.debug-line.log | ||||
|     - include: immediately_pop | ||||
|   immediately_pop: | ||||
|   | ||||
							
								
								
									
										30
									
								
								assets/syntaxes/02_Extra/syslog.sublime-syntax
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								assets/syntaxes/02_Extra/syslog.sublime-syntax
									
									
									
									
										vendored
									
									
								
							| @@ -31,22 +31,24 @@ contexts: | ||||
|   structured-data: | ||||
|     - match: '\[' | ||||
|       scope: punctuation.section.mapping.begin.syslog | ||||
|       push: | ||||
|         - match: \] | ||||
|           scope: punctuation.section.mapping.end.syslog | ||||
|           pop: true | ||||
|         - match: \w+ | ||||
|           scope: variable.parameter.syslog | ||||
|         - match: = | ||||
|           scope: keyword.operator.assignment.syslog | ||||
|           push: | ||||
|             - match: '[^\s\]]+' | ||||
|               scope: constant.other.syslog | ||||
|               pop: true | ||||
|             - match: (?=\]) | ||||
|               pop: true | ||||
|       push: structured-data-contents | ||||
|     - match: (?=\S) | ||||
|       set: text | ||||
|   structured-data-contents: | ||||
|     - match: \] | ||||
|       scope: punctuation.section.mapping.end.syslog | ||||
|       pop: true | ||||
|     - match: \w+ | ||||
|       scope: variable.parameter.syslog | ||||
|     - match: = | ||||
|       scope: keyword.operator.assignment.syslog | ||||
|       push: structured-data-assignment | ||||
|   structured-data-assignment: | ||||
|     - match: '[^\s\]]+' | ||||
|       scope: constant.other.syslog | ||||
|       pop: true | ||||
|     - match: (?=\]) | ||||
|       pop: true | ||||
|   text: | ||||
|     - match: $ | ||||
|       pop: true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user