From 4149bc27038b52700947c9575d96073ab23ff3ab Mon Sep 17 00:00:00 2001 From: cabralmachado Date: Tue, 2 Apr 2024 11:14:16 +0100 Subject: [PATCH] Update plugin.py to parse .ino (arduino) files as c++ --- sourcecodebrowser/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcecodebrowser/plugin.py b/sourcecodebrowser/plugin.py index 19123fc..5321a9b 100644 --- a/sourcecodebrowser/plugin.py +++ b/sourcecodebrowser/plugin.py @@ -218,7 +218,7 @@ def parse_file(self, path, uri): filename to pass to ctags, and the uri is the actual URI as known by Gedit. They would be different for remote files. """ - command = "ctags -nu --fields=fiKlmnsSzt -f - '%s'" % path + command = "ctags --langmap=c++:+.ino -nu --fields=fiKlmnsSzt -f - '%s'" % path #self._log.debug(command) try: parser = ctags.Parser()