Nathan Sobo
2beb6c0fe0
Pass TokenIterator reference instead of using global singleton
...
Adds an extra reference to each tokenized line but is also more sane.
/cc @maxbrunsfeld
2015-05-20 19:29:38 +02:00
Nathan Sobo
564d75c534
⬆️ first-mate
2015-05-19 17:22:25 +02:00
Nathan Sobo
0c153a298e
Use scope of last token if we iterate off the end
2015-05-16 00:46:31 +02:00
Nathan Sobo
4b5b64f782
Return scopes at very end of token for the last token on a line
2015-05-16 00:06:52 +02:00
Nathan Sobo
ec4c453b87
⬆️ first-mate
2015-05-14 23:08:02 +02:00
Nathan Sobo
e694b18ae2
Merge branch 'master' into ns-less-memory-for-tokens
...
Conflicts:
spec/tokenized-buffer-spec.coffee
src/tokenized-buffer.coffee
2015-05-14 18:55:16 +02:00
Nathan Sobo
ac5a5d5ba0
Remove unused TokenizedBuffer methods that relied on tokens shim
2015-05-14 17:51:46 +02:00
Max Brunsfeld
31c1ac412b
🎨 remove duplication in TokenizedBuffer::setGrammar
2015-05-13 21:23:20 -07:00
Max Brunsfeld
19d905606b
Avoid double computation of screen lines when opening files
...
Previously, instantiating a TextEditor would always compute compute
screen lines twice: once when the DisplayBuffer was instantiated,
and once when the 'invisibles' property was set on the DisplayBuffer.
2015-05-13 19:59:25 -07:00
Nathan Sobo
64c0ef8bd8
Remove more usages of tokens shim
2015-05-14 01:46:49 +02:00
Nathan Sobo
6b51b5d02a
Rename parentScopes to openScopes
2015-05-13 21:17:46 +02:00
Nathan Sobo
a8d01bcec1
Fix bufferRangeForScopeAtPosition with new tags array scheme
2015-05-13 21:17:45 +02:00
Nathan Sobo
06b5d27357
Adapt to first-mate returning purely numeric tag arrays
2015-05-13 21:17:44 +02:00
Nathan Sobo
9583ff04e6
WIP: Start integrating with nested words version of first-mate
2015-05-13 21:17:44 +02:00
Machiste Quintana
2bb2022b5b
👕
2015-04-07 00:05:19 -04:00
Machiste Quintana
5d2392ea67
👕 Fix new coffeelint errors
2015-04-06 23:59:54 -04:00
Kevin Sawicki
0691b837a1
Use new Model superclass in TokenizedBuffer
2015-04-06 11:25:35 -07:00
Kevin Sawicki
7d592c8b78
includeDeprecations -> includeDeprecatedAPIs
2015-04-03 11:29:16 -07:00
Kevin Sawicki
83b679dcc2
::subscribe -> CompositeDisposable
2015-04-03 11:29:15 -07:00
Kevin Sawicki
f916305538
Conditionally include deprecations in TokenizedBuffer
2015-04-03 11:29:12 -07:00
Kevin Sawicki
d9a5aff919
Add explicit return after for loop
2015-03-19 11:48:40 -07:00
Kevin Sawicki
cd5adb6ab7
Clear invalid rows when short-circuiting for null grammar
2015-03-17 17:41:22 -07:00
octref
ddb4556658
Don't tokenize on NullGrammar
...
For file format that Atom doesn't recognize as a
programming language, such as log files,
skip Tokenization since no syntax highlighting should be done.
2015-03-17 15:27:02 -04:00
Nathan Sobo
b2d322f531
🎨 Dry up buildTokenizedLineForRow methods on TokenizedBuffer
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-12 16:40:18 -07:00
Nathan Sobo
fc3d88aada
🐎 Auto-indent lines prior to inserting in buffer
...
Needs cleanup
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-12 16:21:45 -07:00
Nathan Sobo
f326c818fd
Update .foldable on tokenized lines based on indentation
2015-02-06 18:54:13 -07:00
Nathan Sobo
0081fa283e
Cache .foldable on tokenized lines based on block comments
...
Still need to handle indentation
2015-02-06 14:53:07 -07:00
Nathan Sobo
d93950a970
🎨
2015-02-06 13:40:38 -07:00
Nathan Sobo
a4f9413e6b
🎨
2015-02-06 13:31:04 -07:00
Max Brunsfeld
a1b4820c04
Revert "Revert "Merge pull request #4631 ""
...
This reverts commit dc2a453986 .
Conflicts:
spec/config-spec.coffee
src/config.coffee
2014-12-23 09:26:40 -08:00
Max Brunsfeld
dc2a453986
Revert "Merge pull request #4631 from atom/mb-new-config-api"
...
This reverts commit 5147fb6a8b , reversing
changes made to 9bbbb58084 .
2014-12-16 15:27:39 -08:00
Max Brunsfeld
2cea51b50e
Take 'scope' option in Config::onDidChange
...
Deprecate passing the scope as an optional first argument
2014-12-16 14:00:57 -08:00
Nathan Sobo
c58606907a
Make scope a trailing option to Config::get
2014-12-16 14:00:56 -08:00
Nathan Sobo
d53d01d95b
Replace atom.syntax with atom.grammars
2014-11-20 11:42:49 -07:00
Kevin Sawicki
19b0f760a1
Only re-tokenize lines when tab length changes
...
Closes #3929
2014-10-30 16:20:05 -07:00
Nathan Sobo
4d796f614c
Update Tokenized/DisplayBuffer prior to TextBuffer::onDidChange handlers
...
Fixes #3789
2014-10-27 13:56:23 -06:00
Ben Ogle
16ad957609
scopeDescriptor -> scopes
...
Now that we have a real ScopeDescriptor object,
these should change back!
2014-10-21 11:38:43 -07:00
Ben Ogle
137eeab4cf
Return scopes arrays from deprecated methods
...
backward compatibility
2014-10-21 11:19:58 -07:00
Ben Ogle
14c8e9cedc
Fix specs
2014-10-20 18:40:32 -07:00
Ben Ogle
ce2959c0b9
Return ScopeDescriptor objects
2014-10-20 17:49:02 -07:00
Ben Ogle
c0091b4601
scopes -> scopeDescriptor
...
!!!
2014-10-13 16:30:41 -07:00
Ben Ogle
8cf36af1dc
scopesForPosition -> scopeDescriptorForPosition
2014-10-13 16:18:36 -07:00
Ben Ogle
b0de88de74
grammarScopeDescriptor -> rootScopeDescriptor
2014-10-13 16:15:05 -07:00
Ben Ogle
9a41b5050e
Cache the editor.tabLength config value
2014-10-13 12:34:06 -07:00
Ben Ogle
c315631efd
Remove scopeDescriptor from getTabLength
2014-10-08 16:01:42 -07:00
Ben Ogle
f662b3d745
💄 Normalize the names of related subscription things
2014-10-08 16:01:41 -07:00
Ben Ogle
857fd5eaf4
Retokenize when setTabLength() was called.
2014-10-08 16:01:40 -07:00
Ben Ogle
8cd217e50a
Handle changes to the tabLength setting
2014-10-08 16:01:40 -07:00
Ben Ogle
339cb02269
Scope editor.tabLength
2014-10-08 16:01:40 -07:00
Ben Ogle
9808264b7f
Fix onDidChange usage
2014-09-29 16:09:49 -07:00