Skip to content

Commit a2e4fdb

Browse files
vincentwoomarijnh
authored andcommitted
[clike mode] Only match "_t" at the end of an identifier
1 parent 0c5c59c commit a2e4fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/clike/clike.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
284284
// and those that end in _t (Reserved by POSIX for types)
285285
// http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html
286286
function cTypes(identifier) {
287-
return contains(basicCTypes, identifier) || /.+_t/.test(identifier);
287+
return contains(basicCTypes, identifier) || /.+_t$/.test(identifier);
288288
}
289289

290290
// Returns true if identifier is a "Objective C" type.

0 commit comments

Comments
 (0)