Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update uctags.vim #885

Closed
wants to merge 2 commits into from
Closed

Update uctags.vim #885

wants to merge 2 commits into from

Conversation

sqlmap3
Copy link
Contributor

@sqlmap3 sqlmap3 commented Jul 23, 2024

add for systemverilog

Comment on lines +1300 to +1301
\ {'short' : 'E', 'long' : 'enumerators', 'fold' : 0, 'stl' : 0},
\ {'short' : 'A', 'long' : 'assertions', 'fold' : 0, 'stl' : 0},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems to be non-standard. I just pulled and recompiled the latest universal ctags and the enumerators kind is still a lower case e, and the assertions kind is not listed. Is this a custom definition you have somewhere? Or is it tied to a new change that is not yet merged into the latest stable universal ctags?

host ~$ ctags --version
Universal Ctags 6.1.0(eb42eec1b), Copyright (C) 2015-2023 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jul 23 2024, 08:36:30
  URL: https://ctags.io/
  Output version: 0.0
  Optional compiled features: +wildcards, +regex, +gnulib_regex, +iconv, +option-directory, +xpath, +packcc, +optscript, +pcre2
host ~$ ctags --list-kinds=vera
c  classes
d  macro definitions
e  enumerators (values inside an enumeration)
f  function definitions
g  enumeration names
i  interfaces
l  local variables [off]
m  class, struct, and union members
p  programs
P  function prototypes [off]
s  signals
t  tasks
T  typedefs
v  variable definitions
x  external variable declarations [off]
h  included header files
D  cpp macro parameters [off]
host ~$

Comment on lines 1340 to 1361
\ {'short' : 'c', 'long' : 'constants', 'fold' : 0, 'stl' : 0},
\ {'short' : 'O', 'long' : 'constraints', 'fold' : 0, 'stl' : 1},
\ {'short' : 'Q', 'long' : 'prototypes', 'fold' : 0, 'stl' : 1},
\ {'short' : 'C', 'long' : 'classess', 'fold' : 0, 'stl' : 1},
\ {'short' : 'e', 'long' : 'events', 'fold' : 0, 'stl' : 1},
\ {'short' : 'E', 'long' : 'enumerators', 'fold' : 0, 'stl' : 1},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1},
\ {'short' : 'm', 'long' : 'modules', 'fold' : 0, 'stl' : 1},
\ {'short' : 'P', 'long' : 'packages', 'fold' : 0, 'stl' : 1},
\ {'short' : 'b', 'long' : 'blocks', 'fold' : 0, 'stl' : 1},
\ {'short' : 'n', 'long' : 'net data types', 'fold' : 0, 'stl' : 1},
\ {'short' : 'R', 'long' : 'properties', 'fold' : 0, 'stl' : 1},
\ {'short' : 'S', 'long' : 'tructs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'T', 'long' : 'typedefs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'L', 'long' : 'clocking', 'fold' : 0, 'stl' : 1},
\ {'short' : 'V', 'long' : 'covergroup', 'fold' : 0, 'stl' : 1},
\ {'short' : 'b', 'long' : 'blocks', 'fold' : 0, 'stl' : 1},
\ {'short' : 'd', 'long' : 'defines', 'fold' : 0, 'stl' : 1},
\ {'short' : 'P', 'long' : 'programs', 'fold' : 0, 'stl' : 1},
\ {'short' : 'p', 'long' : 'ports', 'fold' : 0, 'stl' : 1},
\ {'short' : 'r', 'long' : 'register data types', 'fold' : 0, 'stl' : 1},
\ {'short' : 't', 'long' : 'tasks', 'fold' : 0, 'stl' : 1}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look fully complete, and the blocks kind is listed twice.

From the latest universal ctags, we have the following. Do we specifically want to exclude the missing ones? That is ok if we do, I just want to confirm as I'm not familiar to working with systemverilog or verilog:

host ~$ ctags --list-kinds=systemverilog | sort
A  assertions (assert, assume, cover, restrict)
b  blocks (begin, fork)
C  classes
c  constants (parameter, specparam, enum values)
d  text macros
E  enumerators
e  events
f  functions
H  checkers
i  instances of module or interface
I  interfaces
K  packages
L  clocking
l  interface class
M  modports
m  modules
n  net data types
N  nettype declarations
O  constraints
p  ports
P  programs
Q  prototypes (extern, pure) [off]
q  sequences
R  properties
r  variable data types
S  structs and unions
t  tasks
T  type declarations
V  covergroups
w  struct and union members

@sqlmap3
Copy link
Contributor Author

sqlmap3 commented Jul 24, 2024

’q sequences;n net data types;N nettype declarations;H checkers;P programs ‘almost out of use

@sqlmap3
Copy link
Contributor Author

sqlmap3 commented Jul 24, 2024

ctags --list-kinds-full=SystemVerilog
LETTER NAME ENABLED REFONLY NROLES MASTER DESCRIPTION
A assert yes no 0 NONE assertions (assert, assume, cover, restrict)
C class yes no 0 NONE classes
E enum yes no 0 NONE enumerators
H checker yes no 0 NONE checkers
I interface yes no 0 NONE interfaces
K package yes no 0 NONE packages
L clocking yes no 0 NONE clocking
M modport yes no 0 NONE modports
N nettype yes no 0 NONE nettype declarations
O constraint yes no 0 NONE constraints
P program yes no 0 NONE programs
Q prototype no no 0 NONE prototypes (extern, pure)
R property yes no 0 NONE properties
S struct yes no 0 NONE structs and unions
T typedef yes no 0 NONE type declarations
V covergroup yes no 0 NONE covergroups
b block yes no 0 NONE blocks (begin, fork)
c constant yes no 0 NONE constants (parameter, specparam, enum values)
d define yes no 0 NONE text macros
e event yes no 0 NONE events
f function yes no 0 NONE functions
i instance yes no 0 NONE instances of module or interface
l ifclass yes no 0 NONE interface class
m module yes no 0 NONE modules
n net yes no 0 NONE net data types
p port yes no 0 NONE ports
q sequence yes no 0 NONE sequences
r register yes no 0 NONE variable data types
t task yes no 0 NONE tasks
w member yes no 0 NONE struct and union members

@sqlmap3 sqlmap3 closed this Jul 24, 2024
@sqlmap3 sqlmap3 deleted the patch-1 branch July 24, 2024 01:56
@alerque alerque mentioned this pull request Jul 24, 2024
@sqlmap3
Copy link
Contributor Author

sqlmap3 commented Jul 24, 2024

I have deleted it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants