Commits

Eric Knibbe  committed e7e32f9 Draft

underscore in directive fix

  • Participants
  • Parent commits d4a4560

Comments (0)

Files changed (1)

File bbedit/reStructuredText.plist

 	Known issues:
 	- doesn't highlight directives if a space comes before the double colon
 	- BB/TW misses highlighting comments starting on the file's 1st or 2nd line
-	- highlights directives containing underscores or single colons as comments,
+	- highlights directives containing single colons as comments,
 	  e.g. directives with a specified Sphinx domain
 	- requires all lines of a comment to have the same padding sequence,
 	  e.g. doesn't highlight a comment whose first line starts with a space and
 			(\A | ^[ \t]*\r)
 			(?P<pad>[ \t]*)\.\. (
 				[ \t]+ (
-					[-+a-zA-Z0-9\.]+ (?(?=\ ?:)
+					([-+.a-zA-Z0-9] | (?<!\b)_)+ (?(?=\ ?:)
 						\ ?:(([^:] | :(?=[^\s]))[^\r]* | $)
-						| ([^-+a-zA-Z0-9\.][^\r]* | $)
+						| ([^-+.\w][^\r]* | $)
 					) | [^\w[|\s][^\r]*
 				) | [ \t]*
 			) (