Ben S
85a4eb2830
Be a bit more pragmatic with language guessing
2015-11-23 13:32:57 +00:00
Ben S
487b87d13a
Avoid highlighting tuple indexes as numbers
2015-11-23 13:30:03 +00:00
Ben S
012448ebe8
Fix bug in attribute value highlighting
...
Any newlines within strings are now properly catered for.
Fixes #3 .
2015-11-23 12:56:37 +00:00
Ben S
77b2980f41
'us' and 'is' -> 'usize' and 'isize'
2015-08-01 22:17:07 +01:00
Ben S
adbf51d973
Add code folding!
...
Also, fix weird-looking function definitions.
2015-03-16 21:49:15 +00:00
Ben S
439556cbe4
Check end of word after scanning functions
...
'enumerate' is not 'enum' with some bits after it!
2015-03-16 18:35:00 +00:00
Ben S
0fe7412e14
Parse definitions with lifetimes correctly
...
This is actually achieved by making the parsing *more lenient* instead of more strict. The view looks more cluttered as a result, but at least it's *correct*. Nothing I can do about the clutter, as far as I know - BBEdit only allows us to use substrings of the document in the menu, so I can't strip out the lifetimes.
2015-03-16 18:19:56 +00:00
Ben S
bfdc57e356
Fix infinite loop when writing code at end of file
...
This resulted in my BBEdit hanging.
2015-02-21 13:27:29 +00:00
Ben S
1154b0df63
Highlight module names in 'use...as' statements
2015-02-21 13:27:05 +00:00
Ben S
822eb95303
But there's only one type of string
2015-02-15 13:48:41 +00:00
Ben S
da342c1b7d
Simplify macro-highlighting code
2015-02-15 13:43:15 +00:00
Ben S
81197c7d45
Detect r##"raw strings"##
2015-02-15 13:23:32 +00:00
Ben S
e6c0074733
Smarten up attribute highlighting
2015-02-15 13:07:24 +00:00
Ben S
5452afbb9c
Replace identifier colour with preprocessor colour
2015-02-15 13:07:10 +00:00
Ben S
2c06798f84
Allow 'us' and 'is' machine-dependent suffixes
2015-02-15 12:54:55 +00:00
Ben S
82931045a2
Highlight macro_rules! definitions + arguments
2015-02-15 02:44:29 +00:00
Ben S
79a65307f0
Changes to the way numbers are highlighted
...
They were being highlighted after underscores in variable names, and underscores weren't being catered for in non-base-ten numeric literals. Now, fixed!
2014-12-24 14:11:32 +00:00
Ben S
c98ec54134
Skip over modules called 'test'
2014-12-05 21:47:52 +00:00
Ben S
98a15cf36a
Skip over empty function/module definitions
2014-12-05 20:51:08 +00:00
Ben S
34bbe47973
Turns out numbers are valid identifier components
2014-12-05 20:08:26 +00:00
Ben S
69e12ea420
Subtly change the way 'use' lines are highlighted
2014-12-05 20:07:08 +00:00
Sean S
dbb13d4816
remove trailing spaces
2014-11-29 16:43:56 +00:00
Ben S
af4c34887f
Highlight numbers in 'use' statements
...
Thanks, std::f64::consts...
2014-11-27 05:19:10 +00:00
Ben S
6668052266
Highlight binary and octal literals
2014-11-25 20:02:24 +00:00
Ben S
91d69de57f
Highlight hex literals
2014-11-25 19:44:29 +00:00
Ben S
01998a20bc
Require whitespace after mod, fn, and use
2014-11-25 18:36:07 +00:00
Ben S
4743bab662
Highlight module names and numeric prefixes
2014-11-14 18:47:59 +00:00
Ben S
41fcd43e6d
Syntax highlight file includes
2014-11-09 21:06:15 +00:00
Ben S
b68e3e3b77
Allow decimal points in numbers
2014-11-09 20:19:55 +00:00
Ben S
87e761b6b2
Fix highlighting problems, and add function colour
2014-11-07 15:31:26 +00:00
Ben S
5ad537f261
Don't start number/identifier runs halfway through a word
2014-11-05 12:02:17 +00:00
Ben S
b9aefd8d32
Make underscores valid number components
2014-10-27 14:34:45 +00:00
Ben S
80aa9874b7
Initial commit
2014-10-26 17:07:10 +00:00