[Geany-devel] for when coffeescript is added

joshua.rh at comcast.net joshua.rh at xxxxx
Sun Dec 11 04:21:28 UTC 2011


I was told this might be useful for when coffeescript is added:

## FILETYPES.COFFEESCRIPT (delete this comment)
 # For complete documentation of this file, please see Geany's main documentation
[styling=C]

[keywords]
# all items must be in one line
##note: keywords can be found here: https://raw.github.com/jashkenas/coffee-script/master/src/lexer.coffee
primary=case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf true false null this new delete typeof in instanceof return throw break continue debugger if else switch for while do try catch finally class extends super undefined then unless until loop of by when and or is isnt not yes no on off
secondary=Array Boolean Date Function Math Number Object String RegExp EvalError Error RangeError ReferenceError SyntaxError TypeError URIError prototype decodeURI decodeURIComponent encodeURI encodeURIComponent eval isFinite isNaN parseFloat parseInt

[settings]
# default extension used when saving files
extension=coffee

# single comments, like # in this file
comment_single=#
# multiline comments
comment_open=###
comment_close=###

# set to false if a comment character/string should start at column 0 of a line, true uses any
# indentation of the line, e.g. setting to true causes the following on pressing CTRL+d
    #command_example();
# setting to false would generate this
#    command_example();
# This setting works only for single line comments
comment_use_indent=true

# context action command (please see Geany's main documentation for details)
context_action_cmd=

[indentation]
#width=4
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=1

[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=coffee --compile "%f"
run=coffee --eval "%f"
## /FILETYPES.COFFEESCRIPT (delete this comment)
Note the coffeescript keywords can be found in coffeescript's lexer here (also commented in the file): https://raw.github.com/jashkenas/coffee-script/master/src/lexer.coffee 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20111211/3acbd4aa/attachment.html>


More information about the Devel mailing list