1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 16:37:50 +03:00

Set a role on the module name identifiers.

This commit is contained in:
Rob Rix 2022-03-15 14:01:06 -04:00
parent 506d41c73d
commit 8ce450f0d1
No known key found for this signature in database
GPG Key ID: 2BE643E01DC032AE

View File

@ -22,6 +22,7 @@
(import_statement name: (dotted_name (identifier) @id)) @this (import_statement name: (dotted_name (identifier) @id)) @this
{ {
edge @this.node -> @id.node edge @this.node -> @id.node
attr (@id.node) role = "module-name-fragment"
attr (@this.node -> @id.node) index = (named-child-index @id) attr (@this.node -> @id.node) index = (named-child-index @id)
} }