branch: elpa/yaml-mode
commit 1a779ba83d8776291544ddecfbfbdb1c388c94ac
Merge: e2befd8 b15a8ff
Author: Yoshiki Kurihara <clou...@gmail.com>
Commit: Yoshiki Kurihara <clou...@gmail.com>

    Merge pull request #8 from holymonson/master
    
    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