forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lisp: introduce unknown, variable, const, and macro kinds
Close universal-ctags#2423. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
5 changed files
with
126 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
u unknown type of definitions | ||
f functions | ||
v variables | ||
m macros | ||
c constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
a0 input.l /^(defun a0 (n) (+ 1 n))$/;" f | ||
A1 input.l /^(DEFUN A1 (n) (+ 2 n))$/;" f | ||
b0 input.l /^(defvar b0 3)$/;" v | ||
B1 input.l /^(DEFVAR B1 4)$/;" v | ||
c0 input.l /^(defconstant c0 5)$/;" c | ||
C1 input.l /^(DEFCONSTANT C1 6)$/;" c | ||
defunknown0 input.l /^(defmacro defunknown0 (s)$/;" m | ||
DEFUNKNOWN1 input.l /^(DEFMACRO DEFUNKNOWN1 (s)$/;" m | ||
unknown input.l /^(defunknown1 unknown)$/;" u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(defun a0 (n) (+ 1 n)) | ||
(DEFUN A1 (n) (+ 2 n)) | ||
|
||
(defvar b0 3) | ||
(DEFVAR B1 4) | ||
|
||
(defconstant c0 5) | ||
(DEFCONSTANT C1 6) | ||
|
||
(defmacro defunknown0 (s) | ||
`(defconstant ,s 'unknown)) | ||
|
||
(DEFMACRO DEFUNKNOWN1 (s) | ||
`(defconstant ,s 'unknown)) | ||
|
||
(defunknown1 unknown) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters