John Sundell
79ce0efd0e
Merge pull request #28 from kelvinlauKL/master
...
Fixes a typo
2019-01-16 23:56:58 +00:00
Kelvin Lau
4a42e6c582
Fixes typo
2019-01-15 17:41:19 -08:00
John Sundell
787d3ed127
Merge pull request #27 from ldstreet/patch-1
...
Update readme to include final html example
2019-01-14 00:23:05 +00:00
Luke Street
7186bd6548
Spaces not tabs
...
updated to use spaces instead of tabs to be consistent
2019-01-12 01:14:36 -06:00
Luke Street
f1796eb99b
Update readme to include final html example
...
Adding an example of a finished html file for those that might be less experienced in html (such as myself). Also added link to HTMLOutputFormat and SPM declaration snippet for convenience. Thanks for the great library!
2019-01-07 22:39:47 -06:00
John Sundell
41f04573a4
Merge pull request #26 from mannberg/mannberg/splashtag
...
Added splashtag info to README
2018-12-17 00:46:20 +01:00
Anders Mannberg
ef8c745f31
Added splashtag info to README
2018-12-15 21:39:35 +01:00
John Sundell
0d1c781af1
Merge pull request #20 from MaciejGad/background_color
...
Add support for different background colors
2018-10-09 23:30:25 +02:00
John Sundell
6eda8586cc
Merge pull request #23 from viktorgardart/patch-1
...
Added webkit-overflow-scrolling to improve scrolling on iOS devices.
2018-10-09 23:28:09 +02:00
John Sundell
183224503f
Theme: Nitpicky code style fix
2018-10-09 23:22:50 +02:00
John Sundell
59d45d39e3
Theme: Documentation fix for backgroundColor
2018-10-09 23:22:18 +02:00
John Sundell
cb3f05d3e2
Theme+Defaults: Nitpicky code style fixes
2018-10-09 23:21:35 +02:00
Viktor Gardart
56bb70fb7f
Added webkit-overflow-scrolling to improve scrolling on iOS devices.
2018-10-05 23:20:26 +02:00
John Sundell
1dfa17227f
Merge pull request #22 from JohnSundell/custom-grammars
...
Make it easier to build custom grammars
2018-09-28 19:03:27 +02:00
John Sundell
4c6f71c0de
Support custom token types
...
This change makes it possible to implement custom token types, which is
really useful when building specialized grammars that use non-standard
token types.
2018-09-28 14:02:42 +02:00
John Sundell
98bfad4ea4
SwiftGrammar: Enable delimiters and syntax rules to be mutated
...
This enables easy creation of custom grammars that are based on the Swift one.
2018-09-28 13:52:51 +02:00
Maciej Gad
1c6998d5f5
add support for different background colors
2018-09-23 14:06:09 +02:00
John Sundell
30b9300441
StatementTests: Nitpicky code style fixes
2018-09-06 08:41:50 +02:00
John Sundell
88961141d4
Merge pull request #16 from marcocapano/patch-1
...
Add support for new keywords
2018-09-06 08:39:16 +02:00
John Sundell
b2c849e93e
SwiftGrammar: Add missing keyword separator
...
Lost in merge conflict resolution
2018-09-05 23:36:12 +02:00
John Sundell
2a049c2031
Merge branch 'master' into patch-1
2018-09-05 23:32:15 +02:00
John Sundell
5d4ac97678
Merge pull request #15 from nik6018/master
...
added "inout" as keyword
2018-09-05 23:28:19 +02:00
Marco Capano
2af2ec9d57
Fixing tests
...
This fixes a missing .whitespace in testForStatementWithContinue and handles indentation in testRepeatWhileStatement
2018-09-05 19:11:16 +02:00
Marco Capano
b8bc4ff2c3
Updating allTests static var
2018-09-05 18:45:53 +02:00
Marco Capano
3c638adcf5
Adding tests for repeat, while, continue and Fallthrough
2018-09-05 18:43:22 +02:00
Marco Capano
338e3b6ef9
Adding "while" keyword
2018-09-05 18:40:27 +02:00
Luffy
7a2f284e5d
missed a component in the test declaration
2018-09-05 07:20:35 +05:30
Nikhil Muskur
70f49996fc
added the test case in allTests array
2018-09-05 07:06:01 +05:30
Nikhil Muskur
ea71fd7191
test added for the "inout" keyword
2018-09-05 06:58:51 +05:30
Marco Capano
32764b0720
Add support for continue, fallthrough and repeat
...
This PR introduces new keywords in SwiftGrammar
2018-09-04 22:26:29 +02:00
Nikhil Muskur
b742c3cfa3
added "inout" as keyword
2018-09-04 16:30:42 +05:30
John Sundell
187effae29
DeclarationTests: Nitpicky code style fixes
2018-08-28 13:23:04 +02:00
John Sundell
90a927cb71
Merge pull request #14 from hotogwc/fix_defer_bug
...
added “defer” as a keyword
2018-08-28 13:20:44 +02:00
wangchi
c1465b0a65
added “defer” as a keyword
2018-08-28 16:06:43 +08:00
John Sundell
1559117b5a
Merge pull request #13 from JohnSundell/keyword-parameter-labels
...
Don’t highlight keywords when used as a parameter label
2018-08-27 19:15:22 +02:00
John Sundell
b8584cd396
Merge pull request #12 from JohnSundell/self-as-static-property
...
Highlight ‘self’ as keyword when used to refer to a type
2018-08-27 19:02:08 +02:00
John Sundell
ac9b512013
Don’t highlight keywords when used as a parameter label
...
Most keywords can be used as parameter labels, such as “for” or “in”, but
they shouldn’t be highlighted in that context.
2018-08-27 19:01:57 +02:00
John Sundell
0e90f5d86c
Merge pull request #11 from JohnSundell/subscript-declarations
...
Correctly highlight subscript declarations
2018-08-27 18:44:28 +02:00
John Sundell
dc83f92228
Highlight ‘self’ as keyword when used to refer to a type
...
This patch fixes syntax highlighting when using `.self` to refer to a type.
2018-08-27 18:44:07 +02:00
John Sundell
1faa928214
Correctly highlight subscript declarations
...
This patch fixes syntax highlighting when declaring
a subscript:
```
struct MyStruct {
subscript(key: Key) -> Value? {
…
}
}
```
2018-08-27 18:32:22 +02:00
John Sundell
fd160ba1ef
Merge pull request #10 from JohnSundell/enum-subscripting
...
Highlight enums used as subscripting keys
2018-08-27 18:21:07 +02:00
John Sundell
a86694802e
Highlight enums used as subscripting keys
...
This patch fixes highlighting when an enum is used as a dictionary key, like this:
```
let value = dictionary[.key]
```
2018-08-27 18:14:17 +02:00
John Sundell
b61a641be7
Merge pull request #9 from JohnSundell/html-escaping
...
HTMLOutputFormat: Escape < and > characters
2018-08-27 00:22:42 +02:00
John Sundell
c73767a0bc
HTMLOutputFormat: Escape < and > characters
...
This patch makes `HTMLOutputFormat` correctly escape all < and > characters
that occur in source code. Otherwise, a web browser rendering the resulting
HTML will interpret those characters as tags.
2018-08-27 00:14:48 +02:00
John Sundell
b892feae14
Merge pull request #8 from JohnSundell/static-generic-calls
...
Correctly handle static methods called on a generic type
2018-08-27 00:12:38 +02:00
John Sundell
be35cef1ea
Correctly handle static methods called on a generic type
...
This patch fixes syntax highlighting for the following scenario:
```
Type<GenericType>.call()
```
Highlighting generic types is especially tricky, since we want them to
be highlighted when appearing at the call site, like above - but we don’t
want to highlight them when they are being declared. Hopefully with this
fix all/most edge cases are covered.
2018-08-27 00:10:08 +02:00
John Sundell
f8523e3360
Merge pull request #7 from JohnSundell/remove-custom-color
...
Replace custom Color struct with typealiases
2018-08-26 23:15:19 +02:00
John Sundell
aea685e8b4
Color: Exclude internal extension on Linux
2018-08-26 22:57:02 +02:00
John Sundell
a68e461eb4
Replace custom Color struct with typealiases
...
Now that the decision not to support colors on Linux
has been made, we can replace the custom `Color` struct
with simple typealiases for `NSColor` and `UIColor`.
The same can’t be done for font, since we want to enable
loading of a font from a path, for SPM packages.
2018-08-26 22:49:39 +02:00
John Sundell
62a517bade
Merge pull request #6 from JohnSundell/fix-sundells-colors
...
Fix Sundell’s Colors theme colors
2018-08-26 14:18:58 +02:00