updated autotag2.lua

Author Brandon <brandon.wall0711@gmail.com>
Author date 2017-08-08 09:03:15
Author local date 2017-08-08 02:03:15 -0700
Committer GitHub <noreply@github.com>
Committer date 2017-08-08 09:03:15
Committer local date 2017-08-08 02:03:15 -0700
Commit 9d6c6e8f87038050f4199a648a9b88ae0a1a0429
Tree d50e49f8bfe75bed494e7760535075ece1a3a167
Parent bad696258f45d93965a38bedf3bf6943b23c9f9d
updated autotag2.lua

Now scans entire document when deciding whether or not to place a closing tag, in addition to the current line.

If a second tag is really intended to be placed that is identical to one already present in the file, pressing the '>' key a second time will override the default behavior and place an nth closing tag. It will then delete the extra chevron automatically.

Sets of tags still need to be entered one set per line for the script to behave as intended. Trying to do <tag1><tag2></tag2></tag1> is still beyond the scope of this script.