X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=userdiff.c;h=7c983c14ff2f4bc2aac6e632ccf982ea9589c6e3;hb=73c6b3575bc638b7096ec913bd91193707e2265d;hp=bf553ad91b55de8a762d56a6ffc6c86e959e878c;hpb=ac7acaa5d98077f7cf900461d5d7ddfebdcc08d3;p=git.git diff --git a/userdiff.c b/userdiff.c index bf553ad91..7c983c14f 100644 --- a/userdiff.c +++ b/userdiff.c @@ -37,6 +37,9 @@ PATTERNS("java", "|[-+0-9.e]+[fFlL]?|0[xXbB]?[0-9a-fA-F]+[lL]?" "|[-+*/<>%&^|=!]=" "|--|\\+\\+|<<=?|>>>?=?|&&|\\|\\|"), +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"