We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab082ad commit 12c65efCopy full SHA for 12c65ef
src/arduino.cc/builder/ctags/ctags_parser.go
@@ -47,6 +47,7 @@ const KIND_FUNCTION = "function"
47
48
const TEMPLATE = "template"
49
const STATIC = "static"
50
+const EXTERN = "extern \"C\""
51
52
var KNOWN_TAG_KINDS = map[string]bool{
53
"prototype": true,
@@ -101,6 +102,9 @@ func addPrototype(tag *types.CTag) {
101
102
if strings.Index(tag.Code, STATIC+" ") != -1 {
103
tag.PrototypeModifiers = tag.PrototypeModifiers + " " + STATIC
104
}
105
+ if strings.Index(tag.Code, EXTERN+" ") != -1 {
106
+ tag.PrototypeModifiers = tag.PrototypeModifiers + " " + EXTERN
107
+ }
108
tag.PrototypeModifiers = strings.TrimSpace(tag.PrototypeModifiers)
109
110
0 commit comments