Better python/tao comment highlighting
This commit is contained in:
parent
0337006986
commit
cde5905ae0
1 changed files with 4 additions and 4 deletions
|
|
@ -212,9 +212,9 @@ impl Highlighter {
|
||||||
// Builtins
|
// Builtins
|
||||||
.with(TokenKind::Macro, r"\b[(True)(False)(None)]\b")
|
.with(TokenKind::Macro, r"\b[(True)(False)(None)]\b")
|
||||||
// Doc comments
|
// Doc comments
|
||||||
.with(TokenKind::Doc, r"^##[^$]*$")
|
.with(TokenKind::Doc, r"^[[:space:]]##[^$]*$")
|
||||||
// Comments
|
// Comments
|
||||||
.with(TokenKind::Comment, r"^#[^$]*$")
|
.with(TokenKind::Comment, r"#[^$]*$")
|
||||||
.clike()
|
.clike()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -227,9 +227,9 @@ impl Highlighter {
|
||||||
// Builtins
|
// Builtins
|
||||||
.with(TokenKind::Macro, r"\b[(True)(False)]\b")
|
.with(TokenKind::Macro, r"\b[(True)(False)]\b")
|
||||||
// Doc comments
|
// Doc comments
|
||||||
.with(TokenKind::Doc, r"^##[^$]*$")
|
.with(TokenKind::Doc, r"^[[:space:]]##[^$]*$")
|
||||||
// Comments
|
// Comments
|
||||||
.with(TokenKind::Comment, r"^#[^$]*$")
|
.with(TokenKind::Comment, r"#[^$]*$")
|
||||||
// Attributes
|
// Attributes
|
||||||
.with(TokenKind::Attribute, r"\$!?\[[^\]]*\]")
|
.with(TokenKind::Attribute, r"\$!?\[[^\]]*\]")
|
||||||
.clike()
|
.clike()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue