Fixed token name and added to self-closing tags list
This commit is contained in:
parent
73fb35e63c
commit
142fc79c97
1 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ var CfmlBehaviour = function () {
|
|||
var iterator = new TokenIterator(session, position.row, position.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
|
||||
if (token && hasType(token, 'meta.tag.name') && token.value.match(/cfelse|cfset|cfapplication|cfabort|cfdump|cfargument|cfproperty|cfinvokeargument|cfqueryparam|cfprocparam/gi) !== null)
|
||||
if (token && hasType(token, 'meta.tag.name') && token.value.match(/cfabort|cfapplication|cfargument|cfassociate|cfbreak|cfcache|cfcollection|cfcookie|cfdbinfo|cfdirectory|cfdump|cfelse|cfelseif|cferror|cfexchangecalendar|cfexchangeconnection|cfexchangecontact|cfexchangefilter|cfexchangetask|cfexit|cffeed|cffile|cfflush|cfftp|cfheader|cfhtmlhead|cfhttpparam|cfimage|cfimport|cfinclude|cfindex|cfinsert|cfinvokeargument|cflocation|cflog|cfmailparam|cfNTauthenticate|cfobject|cfobjectcache|cfparam|cfpdfformparam|cfprint|cfprocparam|cfprocresult|cfproperty|cfqueryparam|cfregistry|cfreportparam|cfrethrow|cfreturn|cfschedule|cfsearch|cfset|cfsetting|cfthrow|cfzipparam/gi) !== null)
|
||||
return;
|
||||
if (hasType(token, 'string') && iterator.getCurrentTokenColumn() + token.value.length > position.column)
|
||||
return;
|
||||
|
|
@ -72,7 +72,7 @@ var CfmlBehaviour = function () {
|
|||
} else {
|
||||
atCursor = true;
|
||||
}
|
||||
if (!token || !hasType(token, 'meta.tag-name') || iterator.stepBackward().value.match('/')) {
|
||||
if (!token || !hasType(token, 'meta.tag.name') || iterator.stepBackward().value.match('/')) {
|
||||
return
|
||||
}
|
||||
var element = token.value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue