cn
9b75b9cc05
Merge branch 'master' of https://github.com/raev/joe-syntax
2012-07-03 17:16:10 +02:00
Christian Nicolai
cfa4803171
Merge pull request #3 from raev/master
...
erlang update
2012-07-03 04:42:02 -07:00
cn
2117fef937
Add .jnlp as syntax xml
2012-05-13 12:40:07 +02:00
cn
909d325468
Call js.js(php) instead of js.js(html) when using html(php)
...
Mostly copied from css(php),
2012-05-13 01:38:13 +02:00
cn
f17483d34f
Move <script> Javascript highlighting from java.java(script) to js.js(html)
2012-05-13 01:05:48 +02:00
cn
370e61b5b2
PHP: Fix end " or ' hilite after variable substitution
2012-04-10 13:55:20 +02:00
cn
ef99b6b10c
Ruby: disable mechanism to find |proc_arg| because of buggy site effects
...
It is nearly impossible to detect |proc_arg| and to distinguish it from e.g. a | b | c
as an expression - currently the proc_arg hiliter assumes that there are no spaces around
the proc_arg which is too narrow. Yesterday I encountered a buggy site effect that |i1| the
1 is hilited like a number... so I should disable this feature which is currently not enabled
by default completely.
2012-03-31 20:43:37 +02:00
cn
55d1d3bf83
Merge branch 'master' of github.com:cmur2/joe-syntax
2012-02-25 15:38:36 +01:00
cn
4e08288c38
Add recognition of files starting with <?xml as xml syntax
2012-02-25 15:38:12 +01:00
cn
605b0c088e
ruby: accept %W (same as %w) strings, too
2012-01-19 12:04:13 +01:00
cn
dead2a7d3c
ftyperc: wordwrap is nice, sometimes.
2011-11-27 11:07:46 +01:00
cn
341a5f0dc8
TeX: add recognition of \verb+foo+ commands
...
The delimiter after \verb may vary, highlighting it is supported through
delim buffer of JOE.
2011-11-22 10:13:36 +01:00
cn
8bbed067ad
Introduce comment label highlighting for TeX
2011-11-13 14:36:24 +01:00
cn
f555e413a9
Add JOEs original TeX highlighter
2011-11-13 14:35:44 +01:00
cn
8557f0c20b
yaml: fix minor bug
2011-11-10 21:07:51 +01:00
cn
0109cc7c7d
CSS: rewrite selector parser frm scratch for more modularity
2011-11-07 23:39:10 +01:00
cn
78dda67321
CSS: improve constant detection and fix bugs
2011-11-07 23:01:06 +01:00
cn
2cb18336ee
Add setup script for symlinking this repos contents directly form /usr/share/joe/syntax
2011-11-06 21:19:02 +01:00
cn
ac6cf0fc1b
CSS: implement constant parser
2011-11-06 21:03:56 +01:00
cn
fac5b4bee6
Enable standalone CSS highlighter
2011-11-06 20:39:24 +01:00
cn
9716bb9cc9
Add brand new highlighter for sieve email filtering language
2011-11-06 16:14:14 +01:00
cn
b36fa82909
New highlighter for Erlang
...
This is a first version featuring most of the important syntax elements
as comments, keywords, atoms and variables etc.
Btw fixed prolog parsed to behave like the erlang one when highlighting
atoms and variables.
2011-10-30 20:33:38 +01:00
cn
bae250abd9
Haml: not every = is the start of ruby code
...
If a line already contains plain characters (even whitespace, say everything
whitout a special function like tags etc) then an equal sign will only be
an equals sign not the start of ruby code.
2011-10-25 18:58:15 +02:00
cn
b811498057
YAML: color keys: normal and values as constants
2011-10-23 00:36:45 +02:00
cn
d88c044fb9
YAML: highlight first key: of the line different
2011-10-22 22:36:28 +02:00
cn
2b59cf9e90
Brand new Haml highlighter
...
The main features of Haml can be correctly parsed according to
http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html .
There exist some limitations inherently comming from the limitations
of state machine based highlighters (without side effects)... this parsers
sucks with multiline comments, strings etc since the indent based grouping
can't be evaluated.
2011-10-19 20:40:45 +02:00
cn
0c2921e849
ftyperc: add apple plist
2011-10-17 18:59:52 +02:00
cn
87b761a43b
Ruby: allow ##{} to be correctly lit
2011-10-12 14:01:38 +02:00
cn
673886c1d5
Ruby: parse <% # comment %> correctly in erb mode
...
Previous versions consumed the whole line after a pound now there is
a check to search for erb end tag in erb mode.
2011-10-08 20:28:26 +02:00
cn
1e645a8b55
ftyperc: make .bashrc as 'sh' not 'conf'
...
The *rc -> 'conf' detection should be done very first cause of it's
universality to allow other definitions to overwrite it.
2011-10-07 10:50:57 +02:00
cn
20488eb1ed
Update README
2011-10-05 00:16:20 +02:00
cn
3535b8b27e
HTML: make colorset less irritating
...
...for me ;)
2011-10-04 23:55:57 +02:00
cn
9743600faa
Update README
2011-10-04 23:30:12 +02:00
cn
f9ac8887c5
Ruby: minor bugfix with subroutine
2011-10-04 23:27:38 +02:00
cn
09bdf55037
New highlighter for Ruby's ERB and HTML embedded ERB
...
Ruby code inside ERB tags (whether in plain or HTML environment) is highlighted
via the ruby.jsf colorer.
2011-10-04 21:26:20 +02:00
cn
4d138ffec2
Ruby: allow ?! in symbols
2011-10-03 23:01:33 +02:00
cn
e832ba5d5a
Ruby: support for :"symbols" and :'symbols'
...
These are highlighted completely red.
2011-09-29 19:17:09 +02:00
cn
cd11cffde5
Ruby shebang pattern matching ".../env ruby" too
2011-09-22 16:50:49 +02:00
cn
b590d02112
Shebang recognition for Ruby
2011-09-22 16:46:45 +02:00
cn
d232c49b1e
For a programer it's more likely to encounter a script without ending
2011-09-22 16:42:48 +02:00
Christian Nicolai
21b53a4721
Ruby: fix no-keyword hilite
2011-09-19 00:42:28 +02:00
Christian Nicolai
6bea2b0dee
Ruby: no-keyword detection for e.g. .nil? or .private or .class
2011-09-18 23:40:34 +02:00
Christian Nicolai
023d39ed80
Ruby: remove .<digit> float support
...
Newer Rubies (appearently 1.7 and above) do not accept floating point literals
like .5 anymore with the following error:
no .<digit> floating literal anymore; put 0 before dot
2011-09-18 22:09:56 +02:00
Christian Nicolai
92de67ef9e
Ruby: fix symbol detection - it now detects 1-char-symbols like :s
2011-09-18 16:35:32 +02:00
Christian Nicolai
da873ca713
Ruby: fixed class declaration hilite
2011-09-18 16:30:00 +02:00
Christian Nicolai
23aa59efc2
Ruby: class name declaration highlighter (bold blue)
2011-09-17 20:37:53 +02:00
Christian Nicolai
2368f93f0e
´Ruby: highlight global variables yellow by default
2011-09-14 11:27:40 +02:00
Christian Nicolai
719446269f
Python: quasi-keywords and support for decorators (@annotation -> red)
2011-09-03 16:46:25 +02:00
Christian Nicolai
c0d169a2ce
Python: Highlight "private" members (e.g. _var) in brown
2011-09-03 16:18:07 +02:00
Christian Nicolai
499511cac7
Python docstrings should be green
...
Else everything is cyan: constants like numbers and strings *and* the docstrings.
2011-09-03 16:00:12 +02:00
Christian Nicolai
269586ce04
Todo label highlighting for Python
2011-09-03 11:05:07 +02:00
Christian Nicolai
dfb8ac1c22
Added original JOE highlighter for Python
2011-09-03 11:03:43 +02:00
Christian Nicolai
047a0a054a
Updated REAMDE
2011-08-22 19:30:01 +02:00
Christian Nicolai
419e028f5f
Made CSS parser <?php?> aware when in html/php files
...
The HTML highlighter (called from php.jsf) will "inherit" the php-flag to
css.jsf so it calls php.jsf again on <?php?>.
2011-08-17 23:58:48 +02:00
Christian Nicolai
e8990285cd
Added JOEs original HTML and CSS highlighters
...
These are gonna be patched...
2011-08-17 23:57:26 +02:00
Christian Nicolai
d062c874bd
Allow ? and ! in Ruby identifiers
...
From the spec ? and ! are only allow at the _end_ of _method_ names. The current highlighter accepts ? and ! in _all_ identifiers (since they could be e.g. method calls), too.
2011-08-11 22:53:32 +02:00
Christian Nicolai
40568ca3e3
More keywords for Ruby, disabled $global variables
2011-08-11 22:41:01 +02:00
Christian Nicolai
b4d4027981
Pure line-based approach is too complex
2011-08-10 10:27:00 +02:00
Christian Nicolai
8a65b04859
New syntax highlighter for assembly in AT&T syntax
...
This is a line-based version for parsing unix assembly in AT&T syntax,
rather then doing it token-based like asm.jsf.
2011-08-07 12:05:19 +02:00
Christian Nicolai
d18838749c
Updated README
2011-08-07 10:39:35 +02:00
Christian Nicolai
77fc8c0184
Disabled options --force, --spaces
...
These are causing trouble on normal text files though they should only take
effect on .whitespace files...
2011-08-07 10:34:51 +02:00
Christian Nicolai
254f6fa3d2
Generator script for bundles
2011-08-06 23:08:34 +02:00
Christian Nicolai
4ec555bf68
Updated README
2011-08-06 23:04:31 +02:00
Christian Nicolai
8b66e98b4a
Updated README
2011-08-06 22:19:09 +02:00
Christian Nicolai
6192219d98
Fixed bug in js.jsf
...
This prevented correct hilite in situations like this:
variable /* comment */
This was mislit as regex beginning t the second '/'.
2011-08-06 14:16:29 +02:00
Christian Nicolai
268167c81e
New bad tab highlighter for YAML files
...
This marks bad tabulators (inverse red) to make clear that YAML
only relies on spaces for indentation.
2011-08-06 12:44:51 +02:00
Christian Nicolai
0ca5a95d56
after_term support for Javascript highlighter
...
This allows us to parse / / regex literals correctly in (nearly?) all
situations by recognizing if a literal is currently allowed or not (after terms!).
Now calc(a / b) works perfectly since 'a' is a term.
But match(/blub/) works too since after a ( everything is allowed.
Tested on JQuery 1.6.2 normal source ;-)
2011-08-06 12:32:37 +02:00
Christian Nicolai
5b54f69666
Reformatted ruby.jsf for tabsize 8
2011-08-06 12:29:43 +02:00
Christian Nicolai
70b8e6a2d0
Fixed minor bug in php.jsf
...
This breaks highlighting completely on a sequence like
?'blub'
since the ? eats it's next char instead of delegating it to :idle.
2011-08-06 12:24:54 +02:00
Christian Nicolai
97035588b0
Original JOE syntax highlighting file for PHP
...
This contains bugs...
2011-08-06 12:23:28 +02:00
Christian Nicolai
c09253442f
Improved js.jsf
...
Currently the regex has some serious problems - may fail in practice.
2011-08-06 00:39:04 +02:00
Christian Nicolai
8014f8603f
Fixed bug
2011-08-06 00:38:52 +02:00
Christian Nicolai
a2c886e3fa
Added revamped Javascript highlighter
...
This version is only for standalone .js files, not for <script> tag in HTML.
2011-08-05 23:45:04 +02:00
Christian Nicolai
fa61d19d1c
Improved java highlighter by additional keywords
2011-08-05 23:32:46 +02:00
Christian Nicolai
d3e22cfc31
Added XML nested declaration patch
...
I don't know whether this introduces bugs with the XML highlighter but the
nested declaration highlighting is wrong (IMO and compared to other editors)
in situations like this:
<!--<inner_tag>
foo
bar
-->
The second '<' after the <!-- activates the nested_decl rule and prevents this
comment from being highlighted with class Comment.
2011-08-05 22:58:55 +02:00
Christian Nicolai
6b47a433ab
Added whitespace highlighting scheme
...
Note: you need to be careful what options to enable on JOE since
only tabs, spaces and newlines matter...
2011-08-05 22:56:58 +02:00
Christian Nicolai
60f12d591d
Added global variable highlighter for ruby
...
Feature:
- highlights $blub variables (yellow)
2011-08-04 00:23:31 +02:00
Christian Nicolai
267ac0301b
Added some subtypes of ruby files
2011-08-03 00:15:46 +02:00
Christian Nicolai
cc7cbfc270
Added comment information for several files
2011-08-03 00:07:01 +02:00
Christian Nicolai
ee54b1ff60
New syntax highlighter for INI files
...
Features:
- comments after ; and # (even on key=value lines)
- section highlight
- escaping in values
- error checking for [sections] and incomplete key=value pairs
2011-08-02 23:46:07 +02:00
Christian Nicolai
ca2159561e
Cleaned properties.jsf up
2011-08-02 23:45:43 +02:00
Christian Nicolai
6d9bc7ef5a
Updated HowItWorks.md
2011-08-02 22:14:39 +02:00
Christian Nicolai
1075dd7278
Updated HowItWorks.md
2011-08-02 22:10:26 +02:00
Christian Nicolai
6ce845cb5a
New JOE highlighter for Java's .properties files
...
Features:
- many :p
- value continuation on next line
- unicode escape codes
- line comments on # and !
- good error detection (simpler on stricter files)
2011-08-02 22:03:36 +02:00
Christian Nicolai
69bdfbbf9b
New comment todo labels for java
2011-08-02 18:53:07 +02:00
Christian Nicolai
acee020264
Refactored ruby comment todo labels
2011-08-02 18:52:46 +02:00
Christian Nicolai
09e10b4b36
New separate template file for comment todo labels
2011-08-02 18:52:01 +02:00
Christian Nicolai
46014493d8
Removed URL highlighter
...
It's not generally usable...
2011-08-02 17:50:59 +02:00
Christian Nicolai
6eaac228a3
Renamed antvar subroutine to maybe_antvar
2011-08-02 17:27:05 +02:00
Christian Nicolai
5912526050
URL highlighter for YAML
2011-08-02 17:23:09 +02:00
Christian Nicolai
c8bb8774a7
Fixed bug in yaml.jsf
2011-08-02 16:45:04 +02:00
Christian Nicolai
495194d5ca
Fixed ruby string substitution highlight
...
In (at least recent versions of) ruby the phrase #{var} is used
for string substitution in "..." strings.
2011-08-02 15:16:22 +02:00
Christian Nicolai
2dfd716959
Improved Ant syntax highlighting
...
Features:
- keyword hilite for start tag names e.g. <target ...>
- subroutine 'antvar' for Ant variable references
2011-08-02 15:00:12 +02:00
Christian Nicolai
1a314919ff
New syntax highlighting for Ant scripts
...
Common file for ftyperc: build.xml
This jsf is derived from the XML highlighter but with changed
colors matching the fact that for Ant <tags> are important
(and blue is bad here).
Features:
- Ant variable reference highlighting for e.g. ${build.dir}
2011-08-02 13:58:41 +02:00
Christian Nicolai
fe150361d1
Updated README
2011-08-02 13:09:30 +02:00
Christian Nicolai
87f179cf52
New syntax highlighting profile for apt's sources.list
2011-08-02 13:06:11 +02:00
Christian Nicolai
63a431bc13
Improved yaml.jsf
2011-08-02 12:29:30 +02:00
Christian Nicolai
c12712df6c
Method hilite for Java, prolog.jsf tabs corrected
2011-08-01 20:48:33 +02:00
Christian Nicolai
82ec704ab2
Added JOEs original java syntax highlighting file
2011-08-01 19:49:39 +02:00
Christian Nicolai
5d55ca5db6
Updated HowItWorks
2011-08-01 19:42:44 +02:00