FUEL: improve highlighting and indentation for ERROR:
							parent
							
								
									d24ffe8346
								
							
						
					
					
						commit
						221fb87fae
					
				| 
						 | 
				
			
			@ -59,6 +59,7 @@
 | 
			
		|||
  (ratio constant  "ratios")
 | 
			
		||||
  (declaration keyword "declaration words")
 | 
			
		||||
  (ebnf-form constant "EBNF: ... ;EBNF form")
 | 
			
		||||
  (error-form warning "ERROR: ... ; form")
 | 
			
		||||
  (parsing-word keyword  "parsing words")
 | 
			
		||||
  (postpone-body comment "postponed form")
 | 
			
		||||
  (setter-word function-name "setter words (>>foo)")
 | 
			
		||||
| 
						 | 
				
			
			@ -132,6 +133,7 @@
 | 
			
		|||
    (,fuel-syntax--float-regex . 'factor-font-lock-number)
 | 
			
		||||
    (,fuel-syntax--ratio-regex . 'factor-font-lock-ratio)
 | 
			
		||||
    (,fuel-syntax--type-definition-regex 2 'factor-font-lock-type-name)
 | 
			
		||||
    (,fuel-syntax--error-regex 2 'factor-font-lock-error-form)
 | 
			
		||||
    (,fuel-syntax--method-definition-regex (1 'factor-font-lock-type-name)
 | 
			
		||||
                                           (2 'factor-font-lock-word))
 | 
			
		||||
    (,fuel-syntax--before-definition-regex (1 'factor-font-lock-type-name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -135,6 +135,9 @@
 | 
			
		|||
  (fuel-syntax--second-word-regex
 | 
			
		||||
   '("C-STRUCT:" "C-UNION:" "COM-INTERFACE:" "MIXIN:" "TUPLE:" "SINGLETON:" "SPECIALIZED-ARRAY:" "STRUCT:" "UNION:" "UNION-STRUCT:")))
 | 
			
		||||
 | 
			
		||||
(defconst fuel-syntax--error-regex
 | 
			
		||||
  (fuel-syntax--second-word-regex '("ERROR:")))
 | 
			
		||||
 | 
			
		||||
(defconst fuel-syntax--tuple-decl-regex
 | 
			
		||||
  "^TUPLE: +\\([^ \n]+\\) +< +\\([^ \n]+\\)\\_>")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -168,7 +171,8 @@
 | 
			
		|||
 | 
			
		||||
(defconst fuel-syntax--indent-def-starts '("" ":"
 | 
			
		||||
                                           "AFTER" "BEFORE"
 | 
			
		||||
                                           "ENUM" "COM-INTERFACE" "CONSULT"
 | 
			
		||||
                                           "COM-INTERFACE" "CONSULT"
 | 
			
		||||
                                           "ENUM" "ERROR"
 | 
			
		||||
                                           "FROM" "FUNCTION:" "FUNCTION-ALIAS:"
 | 
			
		||||
                                           "INTERSECTION:"
 | 
			
		||||
                                           "M" "M:" "MACRO" "MACRO:"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue