Package: universal-ctags Version: 0+git20200824-1 Severity: normal Tags: upstream X-Debbugs-Cc: vincent.vsme...@gmail.com
It looks like that double quotes are searched for in pairs. Everything in between is skipped. The attached assembly file has double quotes in the comments. The command: ctags -o - test.s shows that some labels are not found, and some are incorrectly tagged. The output looks like: label1 test.s /^label1: ; No problems with label1.$/;" l label2 test.s /^label4: ; The tag of label2 will search for label4 because of the closing " character.$/;" l label5 test.s /^label5: ; Back to normal again.$/;" l Label1 is Ok. Label2 has the search pattern of the line with label4. Label3 is missing. Label4 is mixed up with label2. Label5 is Ok again. Regards, Vincent -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.9.0-3-amd64 (SMP w/4 CPU threads) Locale: LANG=nl_NL.utf8, LC_CTYPE=nl_NL.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages universal-ctags depends on: ii libc6 2.31-4 ii libjansson4 2.13.1-1 ii libseccomp2 2.5.0-3 ii libxml2 2.9.10+dfsg-6.2 ii libyaml-0-2 0.2.2-1 universal-ctags recommends no packages. Versions of packages universal-ctags suggests: ii vim 2:8.2.1913-1+b2 -- no debconf information
; Problems with a single double-quote character. label1: ; No problems with label1. label2: ; label2 will not be found due to the " character. label3: ; label3 is also skipped. label4: ; The tag of label2 will search for label4 because of the closing " character. label5: ; Back to normal again.