Code Monkey home page Code Monkey logo

coldfusion's People

Contributors

atomi avatar bbluemel avatar dominicwatson avatar i-like-robots avatar indynz avatar mikerankin avatar pchaigno avatar siddley avatar tollus avatar virtix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coldfusion's Issues

TagCompletions w/ Function Completions?

Hi folks. First off, thanks for this. I've been using CFEclipse for about 5-6 years now and have longed for an editor that was faster and more svelte than Eclipse but could never part ways until now. This package is key.

So, my question/issue is, when I enable @bbluemel 's TagCompletions package, I seem to lose all of the sweet function completions in CFScript.sublime-completions. Do these have to be mutually exclusive? I have tried the manual install of the TagCompletions package as well as switching to the branch I see in progress here, but the result is the same. With TagCompletions on the function completions go away.

I'd love to contribute here if there's anything you need help with. In particular I'd love to work on a Railo tag library definition file, since I use Railo exclusively now.

Thanks again \m/

Highlighting broken inside scripts js tags (!cfquery/sql and other languages)

I noticed when using tags like cfif, cfset, etc.. inside a cfquery tag the highlighting is broken. Only cfqueryparam seems to be colored.

<cftransaction isolation="read_uncommitted">
    <cfquery name="theTableUpdate" datasource="#dsn#">
        update MyTable set 
        isRead=<cfif hasReadEntry>1<cfelse>0</cfif> 
        where id=<cfqueryparam cfsqltype="cf_sql_integer" value="#currId#">
    </cfquery>
</cftransaction>

In the provided example cfif is colored in white (I use a dark twighlight theme).

The same issue is also found in script tags. I guess that is the same issue since it is mixing CF with sql and CF with javascript?...

CFMLvsHTML line comment matching (Minor Issue)

Coldfusion.tmLanguage
Just a small glitch I found when matching comment.line.cfml vs comment.line.html
The current patterns are as follows:

<dict>
                    <key>match</key>
                    <string>&lt;!--.*--&gt;</string>
                    <key>name</key>
                    <string>comment.line.html</string>
                </dict>
                <dict>
                    <key>match</key>
                    <string>&lt;!---.*---&gt;</string>
                    <key>name</key>
                    <string>comment.line.cfml</string>
                </dict>

In this case coldfusion line comment will never be matched as a comment.line.cfml because the html comment condition will satisfy first.

The fix would be to just invert order

<dict>
                    <key>match</key>
                    <string>&lt;!---.*---&gt;</string>
                    <key>name</key>
                    <string>comment.line.cfml</string>
                </dict>
                <dict>
                    <key>match</key>
                    <string>&lt;!--.*--&gt;</string>
                    <key>name</key>
                    <string>comment.line.html</string>
                </dict>

Cfscript.tmLanguage issue

The following line causes an error when loading a CFM/CFC with cfscript in it and subsequently stops the plugin from working afterwards.

Line 50:                     <string>#tag-stuff</string>    

Removing the hash does the trick

Tag completion within cfscript block is triggered by greater than operator

If I try to type the following...

<cfscript>
    if ( x > y ) {
        stuff();
    }
</cfscript>

...the greater than operator triggers tag completion and closes the tag. Not a big deal if you haven't closed the tag yet, but if you're working on an already existing cfscript block, it's impossible to type a greater than symbol (unless there's a key combo I'm missing). Is there a way to disable tag completion within a cfscript block that already has a closing cfscript tag?

Thanks for this project, btw. I dropped Coda for Sublime Text specifically because of the great CF support.

HTML tags not auto un-indenting on .cfm pages

I'm not sure if this is something that just I'm experiencing or its universal. What I'm seeing is that when I open a tag, say a

and hit enter the next line will be indented which is fine, but if I type in
and hit enter the line should un-indent. I checked and made sure it wasn't a sublime bug by trying the same use-case in a html document.

Use ColdFusion Comments instead of SQL in <cfquery> Tags

Maybe it would valid to add cf comments instead of sql comments with in a ? What do you guys think?

Example: Want to comment out cfif, I press Shift+Ctrl+/

cfquery name="skldjf" datasource="dkdkfj"
SELECT *
FROM tester
/* cfif arguements.test is " "> WHERE includeMe = 'condition' /cfif */
/cfquery

Typing </cfoutput> locks up Sublime

I'm on the dev release of Sublime Text 2, build 2203, so I'm not sure if this is only a Dev thing, but whenever I type </cfoutput> in a CFM file Sublime locks up and must be "Force Quit". This is on Mac OS X Lion.

I can type "</cfoutpu" but as soon as I get to the "u" it locks up. I'm guessing this commit from about 10 hrs ago could be the culprit? SHA: becde23

Add more tag/function/misc completions

It may also be worthwhile to go ahead and add a few more tag/fucntion/misc completions.
The more the merrier since Sublime is smart about choosing your most frequently used completions.

Highlighting of Hashtags

This is a feature I implemented in my Notepad++ plugin, which is quite handy especially if there's no cfoutput tags near by to judge if ones are needed or not. This picture should sum it up pretty well:
hashhighlighting.png

I did start making progress on it over here on my fork, however looks like it may possibly conflict with the autocomplete?

Issues with autocomplete when typing SQL into CFQUERY in CFC

When adding SQL to a CFQUERY in a CFC file the autocomplete causes issues which do not occur when doing the same in a CFM file. For example:

  • Typing SELECT and pressing tab insert CFSELECT.
  • Typing FROM and pressing tab insert CFPROCPARAM.

Something is causing syntax highlighting fail

I wish I could be more specific but I can't even figure out exactly what line is causing this. When I comment out line 82 I get highlighting through line 88, but it stops there. When I comment out line 88, it stops on the very next line.

I just noticed the mismatched quotes on line 88, don't mind those that was some leftover from my testing of this issue. The problem persists weather the mismatched quotes are there or not.

sample code to reproduce:

package void function notifyChildren(string property, any value)
output=false hint="I notify children of an update"{
    var i = 0;

    for(i = 1; i <= arrayLen(variables.children); i++){
        cascaseObjectUpdate(arguments.property, arguments.value, variables.children[i]);
    }
}

package void function cascaseObjectUpdate(String property, any value, any targetObject)
output=false{
    var args = {};
    args["#arguments.property#"] = arguments.value;

    if(structKeyExists(arguments.targetObject, "set#arguments.property#")){
        scriptFunctions.invoke(arguments.targetObject, "set#arguments.property#", args);
    }
}

http://yfrog.com/03jqwp

Feature Request: Syntax Highlighting for Queries in cfscript

Currently, queries in cfscript are just highlighted as plain strings.

If it's possible, it would be great to get syntax highlighting for the queries. I'd like to offer any help I can, so if there are any resources you might point me towards, I'd be glad to take a stab at it myself.

Syntax Coloring Lost

Heres a new one from the MXUnit code base. Looks like another issue with the "property" word. I'd love to throw my hat in the ring and help fix some of these but my regex is not up to par!

http://yfrog.com/5p2ylp

     <cfset receiver._copyToNewName(functionNameInReceiver, functionNameInReceiver & "__orig__", true)>
    <cfset receiver._mixin( propertyName = functionNameInReceiver,
                            property = Giver._getComponentVariable(functionName),
                            ignoreIfExisting = false )>
</cffunction>

<cffunction name="restoreMethod" output="false" access="public" returntype="void" hint="restores a previously overwritten method (via injectMethod) to its original state">
    <cfargument name="receiver" type="any" required="true"/>
    <cfargument name="functionName" type="string" required="true"/>
    <cfset var blender = createObject("component","ComponentBlender")>
    <cfset blender._mixinAll(receiver, blender, "_copyToNewName")>
    <cfset receiver._copyToNewName(functionName & "__orig__", functionName,false)>
</cffunction>`

disable auto completion within cfquery

Almost all SQL related keywords like SELECT, INSERT, UPDATE, FROM, SET, ORDER/GROUP BY, LIMIT, ON trigger the CF auto-completion making it difficult to add new lines while typing these. It would be nice to be able to disable the auto-completion within <cfquery>.

A way to avoid the new line issue is to disable completion by ENTER changing "setting.auto_complete_commit_on_tab" to true (default is false):
{ "keys": ["enter"], "command": "commit_completion", "context": [ { "key": "auto_complete_visible" }, { "key": "setting.auto_complete_commit_on_tab", "operand": true } ] },

Removes support for project management

When i install, SublimeText/Coldfusion plugin using package installer, it blocks the ability for me to create file and folders from sublime itself.

Thanks

2 Auto-closing of tags issues

Typing <cfelse> generates a </cfelse>

Also manually typing any closing tag generates a <//tag>. e.g. typing </cfif> generates a <//cfif>

Script based CFCs

I don't get full color-coding with script based CFCs. Is this not supported?

CFEclipse Shortcuts

Try and get as many cfeclipse shortcuts ported/corrected and the sublime shortcuts remapped.

syntax coloring on multiline variables

Variables on a single line such as:

stylesheetLinkTag('reset,fonts,layout')

color properly.

Variables on multiple lines such as:

stylesheetLinkTag('

reset,
fonts,
layout

')#
revert to the default text editor color.

It would be very helpful for the line breaks not to make a difference.

"Expand selection to scope" in cffunction

Hi!

It would be really cool if "Expand selection to scope" can correctly expand selection to a cffunction body. Now it selects the entire cfc body.

Also, "Expand to indentation" malforms if meets a coldfusion comment. No content is selected to the other side of cursor (lower lines is the cursor is above the comment and vice versa).

Thank you

Incorrectly identified scope for Comments

For commenting in an cfm or CFC page, what should be identified as text.html.cfm is identified as source.cfscript.

First Issue:

A test for this is to add the a simple line like below to a cfm or cfc file:

Place the cursor at the beginning of this line, and try and comment it via super + / OR Edit > Comment > Toggle Comment.

You'll notice that the the line is appended with "//". Toggling comment again removes these two.

Second Issue:
If you select the whole like and toggle comments, nothing happens.

Now, if you remove the two files CFScript.tmPreferences and CFScript.tmPreferences.cache, and try the above two cases, you'll see the now you get html comment (and if you press comment again, you get CFML comment).

On the other side, removing these two files screw up commenting in CFScript blocks.

So this leads me to believe that regular cfml markup blocks are being treated under the scope: source.cfscript, followed by the scope text.html, and then text.html.cfm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.