Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
Merge branch 'Jesus89-c-cpp'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Russ committed Feb 27, 2017
2 parents 9a4a161 + 6c35fac commit be22c43
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports =
"(^|\\s)(static\\s+)?((public|private|protected)\\s+)?(static\\s+)?function\\s+{word}\\s*\\("
]
type: ["*.php"]

Hack:
regex: [
"(^|\\s)class\\s+{word}(\\s|{|$)"
Expand Down Expand Up @@ -74,3 +74,14 @@ module.exports =
"(^|\\s)package\\s+(\\w+::)*{word}\\s*\\;"
]
type: ["*.pm","*.pl"]

'C/C++':
regex: [
"(^|\\s)class\\s+{word}(\\s|:)"
"(^|\\s)struct\\s+{word}(\\s|{|$)"
"(^|\\s)enum\\s+{word}(\\s|{|$)"
"(^|\\s)#define\\s+{word}(\\s|\\(|$)"
"(^|\\s)typedef\\s.*(\\s|\\*|\\(){word}(\\s|;|\\)|$)"
"^[^,=/(]*[^,=/(\\s]+\\s*(\\s|\\*|:|&){word}\\s*\\(.*\\)(\\s*|\\s*const\\s*)({|$)"
]
type: ["*.c","*.cc","*.cpp","*.h","*.hh","*.hpp","*.inc"]

0 comments on commit be22c43

Please sign in to comment.