Adrian Prantl
bfc70044d9
[swift-mode] require flymake-proc
2025-02-24 11:42:00 -08:00
Meghana Gupta
470fa2f365
Remove resultDependsOn/resultDependsOnSelf
2024-06-05 11:36:16 -07:00
Karoy Lorentey
0d2d346803
[utils] Update the in-tree Emacs swift mode to teach it about new keywords
2024-02-16 12:34:26 -08:00
Dave Abrahams
5f4fabdd87
[emacs-support] Parse warnings that have been munged by xcpretty
2018-10-30 14:42:36 -07:00
Harlan
5e02d2a877
Implement #warning and #error ( #14048 )
...
* Implement #warning and #error
* Fix #warning/#error in switch statements
* Fix AST printing for #warning/#error
* Add to test case
* Add extra handling to ParseDeclPoundDiagnostic
* fix dumping
* Consume the right paren even in the failure case
* Diagnose extra tokens on the same line after a diagnostic directive
2018-02-03 18:07:05 -05:00
Goichi Hirakawa
019950211d
[emacs] Add expression keywords to swift-font-lock-keywords
2018-01-30 20:08:11 +09:00
Goichi Hirakawa
39db84318a
[emacs] Add variables surrounded with backticks to swift-font-lock-keywords
2017-10-13 16:02:51 +09:00
Greg Parker
917d359d1e
[emacs] Preserve compatibility with Emacs 22.
...
...which is still the command-line emacs on macOS.
2017-06-27 17:50:26 -07:00
Dave Abrahams
c1c9028448
[emacs-support] Fix indentation for labeled repeat
2017-06-01 15:43:10 -07:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
David Farler
b7d17b25ba
Rename -parse flag to -typecheck
...
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00
Dave Abrahams
7faad8296b
[emacs support] Account for "?" in body hiding
...
When parsing a type name, you need to accept optionals even when the non-optional is a tuple type.
2016-11-22 07:20:22 -08:00
practicalswift
2fe4254cb7
Merge pull request #5878 from practicalswift/https-swift-org
...
[gardening] Use the correct base URL (https://swift.org ) in references to the Swift website
2016-11-22 09:17:57 +01:00
Dave Abrahams
4a084410c1
[emacs support] Fix where clause parse for hiding
...
Before this fix, when there was no where clause present, the function body wouldn't be recognized and \`swift-hide-bodies' would leave it visible
2016-11-20 16:08:27 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Dave Abrahams
a0ddcf0c20
[emacs support] Parse new where clause syntax
...
Bodies of generic methods weren't getting hidden.
2016-11-04 11:36:55 -07:00
practicalswift
cc852042c9
[gardening] Fix accidental trailing whitespace.
2016-10-29 10:22:58 +02:00
Dave Abrahams
7e4b008611
[emacs-support] Speed up doc-comment-detail hiding
2016-10-22 10:52:54 -07:00
Dave Abrahams
61f0245656
[emacs-support] More flymake support
...
Includes support for checking the standard library with flymake
TODO: flymake for test files
2016-10-10 17:24:21 -07:00
Dave Abrahams
b025383e16
[emacs-support] Basic flymake support
...
Still need to make this work with gyb files.
2016-10-03 08:55:06 -07:00
Goichi Hirakawa
8b1a2345cf
Fix "#end" to "#endif"
2016-08-08 13:24:52 +09:00
Goichi Hirakawa
cf1ece143d
Add keywords that begin with a number sign
2016-08-08 11:52:20 +09:00
Goichi Hirakawa
94f06c09fe
Improve operators
2016-08-08 10:17:44 +09:00
Goichi Hirakawa
49cb76a739
Improve variable decl keywords
2016-08-08 10:16:32 +09:00
Goichi Hirakawa
abc0f083f3
Add modifier keywords
2016-08-07 21:28:30 +09:00
Goichi Hirakawa
7ed6ef753a
Add operator and the attribute keywords
2016-08-07 20:32:32 +09:00
Goichi Hirakawa
722cb94741
Add some decl and type keywords
2016-08-07 15:59:29 +09:00
Goichi Hirakawa
528a460b74
Add statements "fallthrough" and "defer"
2016-08-07 14:53:35 +09:00
Nanjiang Jiang
124eb1eeba
Add keywords "open" and "associatedtype"
2016-08-03 18:34:27 -05:00
Daniel Dunbar
504035cfb8
[swift-mode] Add fileprivate keyword.
2016-07-12 13:10:45 -07:00
practicalswift
540cb751ac
[gardening] Fix recently introduced typo: "adavances" → "advances"
...
[gardening] Fix recently introduced typo: "compie" → "compile"
[gardening] Fix recently introduced typo: "consise" → "concise"
[gardening] Fix recently introduced typo: "dengerate" → "degenerate"
[gardening] Fix recently introduced typo: "encodeded" → "encoded"
[gardening] Fix recently introduced typo: "equvalent" → "equivalent"
[gardening] Fix recently introduced typo: "guaranted" → "guaranteed"
[gardening] Fix recently introduced typo: "overridde" → "override"
[gardening] Fix recently introduced typo: "subsquence" → "subsequence"
[gardening] Fix recently introduced typo: "substraction" → "subtraction"
[gardening] Fix recently introduced typo: "whiltespace" → "whitespace"
2016-05-01 20:07:18 +02:00
Dave Abrahams
13ed1a5f18
[emacs support] Fix bugs in function body hiding
...
we were failing to recognize types of the form "A?", "[A]", and uses of
"throws" and "rethrows" in function types.
2016-04-21 17:13:42 -07:00
Dave Abrahams
859cf947f3
[emacs-support] Fix a bug in function body hiding
...
we were failing to recognize types of the form A.B
2016-04-19 16:43:43 -07:00
Dave Abrahams
414030fe85
[emacs support] Add swift-hide-bodies
...
This command collapses all function, method, subscript, init, deinit,
and computed var bodies, leaving only the API surface visible with none
of the implementation.
2016-04-08 07:11:59 -07:00
Dave Abrahams
1c3501ffb6
[emacs support] Add swift-hide-doc-comment-detail
...
When explanatory text in doc comments grows large, it can be hard to
take in an API at a glance. This command collapses everything but the
summary line(s) of all the documentation comments in the file.
2016-04-08 07:08:46 -07:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
Michael Gottesman
97811fe6ac
Merge pull request #345 from wiruzx/patch-1
...
[swift-mode.el] Add `lazy` keyword to font-lock-keyword-face
2015-12-16 23:32:02 -06:00
Victor Shamanov
a5bd00e676
Add lazy keyword to font-lock-keyword-face
2015-12-08 15:35:59 +03:00
Yasuyuki Hisamatsu
d62dd05a4e
[swift-mode.el] Add "default" to swift-font-lock-keywords
2015-12-07 19:38:07 +09:00
Daniel Dunbar
ae1b2c362b
[utils/swift-mode] Allow customization of Swift indentation offset.
...
Swift SVN r32578
2015-10-09 19:32:29 +00:00
Michael Gottesman
60991792b3
[swift-mode] Use mapc instead of mapcar since it is more canonical.
...
mapc is meant to be used in situations where you are performing a map only for
the purposes of side-effects. Also silences a warning while compiling.
Swift SVN r32406
2015-10-02 21:15:33 +00:00
Dave Abrahams
22bb16cfa5
[emacs support] Resilient indenting
...
Strange situations could cause it to compute negative column numbers,
which was triggering errors.
Swift SVN r29858
2015-07-01 22:51:36 +00:00
Dave Abrahams
c743842090
[emacs support] Deal with playground //: comments
...
Swift SVN r29293
2015-06-04 04:29:52 +00:00
Adrian Prantl
e309586c83
swift-mode.el: add "throws" and "catch".
...
Swift SVN r29240
2015-06-02 18:08:02 +00:00
Chris Lattner
35c55f3916
help out poor emacs users with 'guard'.
...
Swift SVN r28250
2015-05-07 00:42:12 +00:00
Adrian Prantl
3382f06428
Add throw and try to swift-mode.el.
...
Swift SVN r28230
2015-05-07 00:29:49 +00:00
Chris Lattner
c6aa041fb9
Add parser/ast/sema/sourcekit/etc support for 'unless' statement.
...
SILGen support still missing.
Swift SVN r27961
2015-04-30 05:55:11 +00:00
Chris Willmore
c7c7388cf2
Change do-while to repeat-while.
...
Change all uses of "do { ... } while <cond>" to use "repeat" instead.
Rename DoWhileStmt to RepeatWhileStmt. Add diagnostic suggesting change
of 'do' to 'repeat' if a condition is found afterwards.
<rdar://problem/20336424> rename do/while loops to repeat/while & introduce "repeat <count> {}" loops
Swift SVN r27650
2015-04-23 22:48:31 +00:00
Adrian Prantl
538f459dc6
swift-mode: add override to the list of keywords
...
Swift SVN r23287
2014-11-12 22:58:08 +00:00
Adrian Prantl
e3400d6aad
swift-mode.el: Add "private" "public" "internal" to the list of keywords.
...
Swift SVN r21914
2014-09-12 18:18:47 +00:00