Commit 6b8f1a72 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

simpify word-boundary usage for int type match

parent 61bd2305
......@@ -661,7 +661,7 @@ def matchTemplate(regexString, matchString)
regexString = regexString.gsub("<opaqueTypes>", opaqueTypesString)
publicTypesString = '(' + $publicTypes.collect{ |type| type }.join('|') + ')'
regexString = regexString.gsub('<publicTypes>', publicTypesString)
regexString = regexString.gsub('<integerTypes>', '(\bshort\b|\bint\b|\blong\b|\bsize_t\b|\bintmax_t\b|\bint_(least|fast)(8|16|32|64)_t\b|\bint(8|16|32|64)_t\b)')
regexString = regexString.gsub('<integerTypes>', '\b(short|int|long|size_t|intmax_t|int_(least|fast)(8|16|32|64)_t|int(8|16|32|64)_t)\b')
regexString = regexString.gsub('<floatTypes>', '(float|double)')
return Regexp.new(regexString).match(matchString)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment