branch: elpa/yaml-mode
commit b15a8ff0056236278768d83d6de8456702da7a7f
Author: Monson Shao <js...@redhat.com>
Commit: Monson Shao <js...@redhat.com>

    fix anchor name can contain '_'
---
 yaml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 049dbc2..9976c64 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -129,7 +129,7 @@ that key is pressed to begin a block literal."
 (defconst yaml-document-delimiter-re "^ *\\(?:---\\|[.][.][.]\\)"
   "Rexexp matching a YAML document delimiter line.")
 
-(defconst yaml-node-anchor-alias-re "[&*]\\w+"
+(defconst yaml-node-anchor-alias-re "[&*][a-zA-Z0-9_-]+"
   "Regexp matching a YAML node anchor or alias.")
 
 (defconst yaml-tag-re "!!?[^ \n]+"

Reply via email to