summaryrefslogtreecommitdiff
path: root/src/userdiff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/userdiff.h')
-rw-r--r--src/userdiff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/userdiff.h b/src/userdiff.h
index 318761567..93b4d0d58 100644
--- a/src/userdiff.h
+++ b/src/userdiff.h
@@ -80,6 +80,10 @@ PATTERNS("java",
"|[-+*/<>%&^|=!]="
"|--|\\+\\+|<<=?|>>>?=?|&&|\\|\\|"),
+PATTERNS("matlab",
+ "^[[:space:]]*((classdef|function)[[:space:]].*)$|^%%[[:space:]].*$",
+ "[a-zA-Z_][a-zA-Z0-9_]*|[-+0-9.e]+|[=~<>]=|\\.[*/\\^']|\\|\\||&&"),
+
PATTERNS("objc",
/* Negate C statements that can look like functions */
"!^[ \t]*(do|for|if|else|return|switch|while)\n"