Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion textx-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
(defvar textx-imenu-generic-expression
;; Everything that match this regexp is considered as TextX term definition.
;; `imenu-generic-expression' works only for top level forms.
'(("Definition" "^\\([A-Z][a-z0-9]+\\)+:$" 1))
'(("Definition" "^\\s-*\\(\\sw+\\)\\s-*:\\s-*$" 1))
;; For more versatile or structured `imenu' a parser function
;; `imenu-create-index-function' should be used.
"Value for `imenu-generic-expression' in TextX mode.")
Expand Down