Commit Graph

77 Commits

Author SHA1 Message Date
Alexander Zolotov
a48bf175bb Fixed plugins compatibility
GitOrigin-RevId: 54c74be0b6f014ba6528ad2f601598a18eed0a48
2019-08-29 10:43:08 +00:00
Alexey Kudravtsev
97781aaa04 inform client about the problem and allow to recover, not crash silently
GitOrigin-RevId: 3e7fc3daaaec69f5e3c39c21d46967ad28939402
2019-08-23 16:09:49 +03:00
Dennis Ushakov
b81945a83b fix extra comma
GitOrigin-RevId: 93953f0e430d4c35d03b7c9559bfd8d9059e9f08
2019-08-22 15:01:09 +03:00
Dennis Ushakov
3631c1332c update textmate bundles
GitOrigin-RevId: 39609fc1f1617cc448727d1e911542a9baf46621
2019-08-22 14:01:53 +03:00
Dmitry Batkovich
2ff0d321a7 don't fire file-type changed events on TextMateServiceImpl initialization IDEA-220816
GitOrigin-RevId: 3df8eb4d6160f1ecd8b4383a6adf270e21b5eee8
2019-08-16 12:03:01 +03:00
Alexander Zolotov
96f083fc13 Delete non-existing root
GitOrigin-RevId: 318cd35647595dea8ab11a538fe182056658bb8a
2019-08-02 20:04:09 +03:00
Alexander Zolotov
a818370eaa TextMate: simplify API
GitOrigin-RevId: 0e410c453f5100497a25f77c48c73288e4cb418b
2019-08-02 18:05:38 +03:00
Alexander Zolotov
550cd00196 TextMate: get rid of custom themes support
GitOrigin-RevId: 5c9a423d80348898aee341d36c9acc353283d1a3
2019-08-02 18:05:38 +03:00
Alexander Zolotov
e96bba88b8 Textmate: register file types from JSON-like bundles
GitOrigin-RevId: 566476c2fdafbcb85f1ea378b559e9f1b18a25b2
2019-08-01 21:02:48 +03:00
Alexander Zolotov
d43e4a66a3 Textmate: chooser should use last added bundle path as a starting point
GitOrigin-RevId: fde4a0fd7c4c593f2fa9c8be2ef2e8fd4f2fdc43
2019-08-01 21:02:48 +03:00
Dennis Ushakov
730d5f0e71 fix concurrent access to tags stack
GitOrigin-RevId: c99a6c1169e831605ed45ed9cb119402f7e53413
2019-08-01 18:04:02 +03:00
Dennis Ushakov
9fdb29cff1 cache joined selectors
GitOrigin-RevId: f98ae9a1c1f01fe3360af7c7a0da18675596cff8
2019-08-01 14:03:25 +03:00
Dennis Ushakov
40a52aac03 give cached values a chance to survive between reparsing
GitOrigin-RevId: a38c853915151146b3eb812e7ab117dfb733b424
2019-08-01 14:03:25 +03:00
Dennis Ushakov
a1df355ccf cache only top level matches to prevent cache trashing
GitOrigin-RevId: e0b299598c67b6227ed2450f4a2703ed52ec776c
2019-08-01 14:03:25 +03:00
Dennis Ushakov
eb6a74910c path interner takes too much time to re-join strings back
GitOrigin-RevId: 359db976eb8b33b9ca51589069c65083a75fe034
2019-08-01 14:03:25 +03:00
Alexander Zolotov
67356ac3a4 Textmate: reimplement replacing groups without regex
GitOrigin-RevId: 72b13b178878fc6d3ebd1a2af656ee83c463d6c4
2019-07-31 18:02:13 +03:00
Dennis Ushakov
55e074a64a specific class for last match (IDEA-CR-50844)
GitOrigin-RevId: dfdff3bf4ec7c9257504d745151f6c2bc6d1de71
2019-07-31 15:43:10 +03:00
Dennis Ushakov
151a18cd2a make regex cache thread local to prevent race problems with caching last match (IDEA-219368)
GitOrigin-RevId: a7884bb8e017beb4f7739b7a50120eea7e02f4fa
2019-07-30 18:06:05 +03:00
Dennis Ushakov
124c3ffe0c don't check string content when comparing states (IDEA-219169)
states are used as keys only in state loop prevention, it should be enough to check whether they use same string or not

GitOrigin-RevId: 86c19587537e12c77ff5eac55bedce0ba344ec83
2019-07-29 20:42:53 +03:00
Dennis Ushakov
93e1494924 fix language&name fields
GitOrigin-RevId: f63b2cf643ec5e9cae2b5a4467c8c02d0ff0f866
2019-07-24 21:02:56 +03:00
Konstantin Bulenkov
bc73a434e1 Remove unused imports and import duplicates from java files
GitOrigin-RevId: e5d5f6df09f21ae2e894451bf0c5255f82836755
2019-07-24 21:02:56 +03:00
Alexander Zolotov
843fcc62cf TextMate: get rid of registering file types using fileNameMatchers + load syntax table lazily
GitOrigin-RevId: 561f8b3b7376ba0c2b48efe8ee53ab085bc71c6d
2019-07-24 20:04:56 +03:00
Alexander Zolotov
a6d67c83ac Make textmate settings not roamable as they contain local paths
GitOrigin-RevId: ec3541edd1845c53e05fb0dcb24fe2fd549593de
2019-07-16 14:05:07 +03:00
Alexander Zolotov
288ae17380 TextMate: do not register extensions with special characters (IDEA-218033)
GitOrigin-RevId: 0aa6b86208498eaa8b643ccac30cf275f48c7aff
2019-07-15 19:03:33 +03:00
Alexander Zolotov
17d606f293 TextMate: store regex and string attributes in a single map + reduce size of RegexFacade
GitOrigin-RevId: 2702fa5cc66d448da09be01220c4ae03b8e80f41
2019-07-15 18:07:02 +03:00
Alexander Zolotov
7f72c7031f Migrate to set
GitOrigin-RevId: 865026f907f25958acf30d99f533d64d2fc6d87e
2019-07-15 18:07:02 +03:00
Alexander Zolotov
8f8b9a3c84 TextMate: intern scope names with PathInterner
scope names are usually
- consist of dot-separated words
- consist of ascii chars only

using PathInterner in all places where scope names are stored allows to save almost 1MB

GitOrigin-RevId: 88710da93f404997336b6b1082572d4a35304dc2
2019-07-15 18:07:02 +03:00
Alexander Zolotov
327a23e3d6 TextMate: use enum map for regex attributes
GitOrigin-RevId: ed3f99322fa285b7cf59b0834f1a248a3491375a
2019-07-15 18:07:02 +03:00
Alexander Zolotov
080d8fce4a TextMate: use enum map for capture attributes
saves 150 kb

GitOrigin-RevId: 3b0e3ea491e3c0ecb84011276bf12d10716d13f9
2019-07-15 18:07:02 +03:00
Alexander Zolotov
4bf4528fcd TextMate: use enum map for string attributes
saves 150 kb

GitOrigin-RevId: d13a2156ad8de540a79fbb3b60970b1d14f304d7
2019-07-15 18:07:02 +03:00
Alexander Zolotov
80fc040bf9 TextMate: intern all string attribute values
saves 150 kb

GitOrigin-RevId: 7cfdc408b2ed506b83a0fc32f6bad50d0162cb68
2019-07-15 18:07:02 +03:00
Alexander Zolotov
8ff9cdc069 TextMate: even more compacted maps
GitOrigin-RevId: 46ed31808c2b422a6b4a5cae87d7f078167b57a2
2019-07-15 18:07:02 +03:00
Alexander Zolotov
a5be513265 TextMate: get rid of fileTypeFactory
GitOrigin-RevId: f5f052654f1621614d72a480b40d17d7ca297d35
2019-07-15 18:07:02 +03:00
Dennis Ushakov
ad9cc9256f intern selectors
GitOrigin-RevId: b1ef90fabd29f8d3bc223c19559360a54da85167
2019-07-15 15:12:13 +03:00
Alexander Zolotov
ac80078fdd TextMate: remove interner after loading syntax table
GitOrigin-RevId: 0d9552e84fd2c6093e98dce6551777d4612d0fcd
2019-07-12 14:04:07 +03:00
Alexander Zolotov
36dd8bf0aa TextMate: increase highlighting limit
GitOrigin-RevId: dcfc8491f53121a309af48a47c47e49c6397ebd8
2019-07-11 21:02:21 +03:00
Alexander Zolotov
9000a21261 TextMate: optimize memory consumption (IDEA-217976)
get rid of anonymous map

GitOrigin-RevId: 28c1c42ead72b0eac9af7dbde618aca5bea1f085
2019-07-11 21:02:21 +03:00
Alexander Zolotov
cf542f0dd2 TextMate: optimize memory consumption (IDEA-217976)
convert PList to capture int-maps

GitOrigin-RevId: aa8dec3aa74786584d4eae64f19c56b4874be7ff
2019-07-11 21:02:21 +03:00
Alexander Zolotov
15bbbbc73f TextMate: optimize memory consumption (IDEA-217976)
- remove unneeded keys
- intern all keys

GitOrigin-RevId: f62fc1d0c3cecdf0d1c24e1ebd801eeb3adae77d
2019-07-11 21:02:21 +03:00
Alexander Zolotov
e94eadacb1 TextMate: optimize memory consumption (IDEA-217976)
- remove unneeded keys
- intern all keys

GitOrigin-RevId: bb6b4beb19190710c10c45c96ff7694f0d93a1e1
2019-07-11 21:02:21 +03:00
Dennis Ushakov
089e7f0aff cleanup
GitOrigin-RevId: ed91782765be7796b4b0e576f2e0e7195657e231
2019-07-11 17:42:27 +03:00
Dennis Ushakov
be856427f7 cache last match data of last matched string (IDEA-216740)
GitOrigin-RevId: f96e482f2fca5767ca4614183a1c3fec8a07f2cf
2019-07-11 17:42:27 +03:00
Alexander Zolotov
659cdd44f0 TextMate: optmize memory consumption (IDEA-217976)
get rid of rootNode field

GitOrigin-RevId: 2b46419f63a89c466e74c79f2a1a6a01d706a73c
2019-07-11 15:02:59 +03:00
Alexander Zolotov
1597c36508 TextMate: optmize memory consumption (IDEA-217976)
trim to size collections

GitOrigin-RevId: 588a3d0435733e8f76cbe58efd7762141d5b2ab0
2019-07-11 15:02:59 +03:00
Alexander Zolotov
aba84a1123 TextMate: use extensions both from extensions and filenames attributes
GitOrigin-RevId: 0315f6bc143f1e72cd487f209fee4230745ed88e
2019-07-09 17:03:48 +03:00
Alexander Zolotov
4c2bbaf37c TextMate: do not highlight long lines
GitOrigin-RevId: 6d7c8b896c26a7f61221110a6e41905c466055ad
2019-07-08 22:04:21 +03:00
Alexander Zolotov
f721ae5af9 TextMate performance improvements
- do not parse long lines (20_000 max)
- avoid double converting String to ByteArray
- do not store strings in every MatchData

GitOrigin-RevId: 53ea105d0a685e66c2552b29fb5b0fd0840ff5ea
2019-07-08 22:04:21 +03:00
Stanislav Dombrovsky
2f1abbd6a0 IDEA-CR-49534: fixes according to review
GitOrigin-RevId: 61d69ac2ea1fa937bfb1887eb9d0000ba157fc2d
2019-07-04 01:31:35 +03:00
Stanislav Dombrovsky
c3251cfb31 Add support for "filenames" attribute in TextMate bundles.
GitOrigin-RevId: 5d954b5c2c609bf96ae8fff99ec83914e5a0d899
2019-07-04 01:31:35 +03:00
Dennis Ushakov
6d15bee261 word based completion for textmate files
GitOrigin-RevId: 6891d3f04366a8199eaffa38e6d1122b90d5e562
2019-07-03 01:13:10 +03:00