Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions userdiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,21 @@ PATTERNS("rust",
"|[0-9][0-9_a-fA-Fiosuxz]*(\\.([0-9]*[eE][+-]?)?[0-9_fF]*)?"
"|[-+*\\/<>%&^|=!:]=|<<=?|>>=?|&&|\\|\\||->|=>|\\.{2}=|\\.{3}|::"),
PATTERNS("scheme",
"^[\t ]*(\\(((define|def(struct|syntax|class|method|rules|record|proto|alias)?)[-*/ \t]|(library|module|struct|class)[*+ \t]).*)$",
/* A possibly indented left paren followed by a Scheme keyword. */
"^[\t ]*(\\(((define|def(struct|syntax|class|method|rules|record|proto|alias)?)[-*/ \t]|(library|module|struct|class)[*+ \t]).*)$\n"
/*
* R7RS valid identifiers include any sequence enclosed
* within vertical lines having no backslashes
* For other Lisp dialects: either an unindented left paren, or a
* slightly indented line starting with "(def".
*/
"\\|([^\\\\]*)\\|"
"^((\\(| {1,2}\\([Dd][Ee][Ff]).*)$",
/*
* The union of R7RS and Common Lisp symbol syntax: allows arbitrary
* strings between vertical bars, including escaped backslashes and
* vertical bars.
*/
"\\|([^\\\\]|\\\\\\\\|\\\\\\|)*\\|"
/* All other words should be delimited by spaces or parentheses */
"|([^][)(}{[ \t])+"),
"|([^][)(}{ \t])+"),
PATTERNS("tex", "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
"\\\\[a-zA-Z@]+|\\\\.|([a-zA-Z0-9]|[^\x01-\x7f])+"),
{ .name = "default", .binary = -1 },
Expand Down
Loading