mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +03:00
Fix comments n junk
This commit is contained in:
parent
31490ca31e
commit
498c8d21b2
@ -84,4 +84,4 @@ valueForLanguage = atom.config.get(editor.getRootScopeDescriptor(), 'my-package.
|
|||||||
[editor-scopeDescriptorForBufferPosition]:https://atom.io/docs/api/latest/TextEditor#instance-scopeDescriptorForBufferPosition
|
[editor-scopeDescriptorForBufferPosition]:https://atom.io/docs/api/latest/TextEditor#instance-scopeDescriptorForBufferPosition
|
||||||
|
|
||||||
[cursor-getScopeDescriptor]:https://atom.io/docs/api/latest/Cursor#instance-getScopeDescriptor
|
[cursor-getScopeDescriptor]:https://atom.io/docs/api/latest/Cursor#instance-getScopeDescriptor
|
||||||
[scope-desctiptor]:https://atom.io/docs/api/latest/ScopeDescriptor
|
[scope-descriptor]:https://atom.io/docs/api/latest/ScopeDescriptor
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
# root of the syntax tree to a token including _all_ scope names for the entire
|
# root of the syntax tree to a token including _all_ scope names for the entire
|
||||||
# path.
|
# path.
|
||||||
#
|
#
|
||||||
|
# Methods that take a `ScopeDescriptor` will also accept an {Array} of {Strings}
|
||||||
|
# scope names e.g. `['.source.js']`.
|
||||||
|
#
|
||||||
# You can use `ScopeDescriptor`s to get language-specific config settings via
|
# You can use `ScopeDescriptor`s to get language-specific config settings via
|
||||||
# {Config::get}.
|
# {Config::get}.
|
||||||
#
|
#
|
||||||
|
@ -487,7 +487,7 @@ class TextEditor extends Model
|
|||||||
when 'decoration-updated'
|
when 'decoration-updated'
|
||||||
deprecate("Use Decoration::onDidChangeProperties instead. You will get the decoration back from `TextEditor::decorateMarker()`")
|
deprecate("Use Decoration::onDidChangeProperties instead. You will get the decoration back from `TextEditor::decorateMarker()`")
|
||||||
when 'decoration-changed'
|
when 'decoration-changed'
|
||||||
deprecate("Use Marker::onDidChange instead. eg. `editor::decorateMarker(...).getMarker().onDidChange()`")
|
deprecate("Use Marker::onDidChange instead. e.g. `editor::decorateMarker(...).getMarker().onDidChange()`")
|
||||||
|
|
||||||
when 'screen-lines-changed'
|
when 'screen-lines-changed'
|
||||||
deprecate("Use TextEditor::onDidChange instead")
|
deprecate("Use TextEditor::onDidChange instead")
|
||||||
@ -1216,7 +1216,7 @@ class TextEditor extends Model
|
|||||||
# ## Arguments
|
# ## Arguments
|
||||||
#
|
#
|
||||||
# * `marker` A {Marker} you want this decoration to follow.
|
# * `marker` A {Marker} you want this decoration to follow.
|
||||||
# * `decorationParams` An {Object} representing the decoration eg. `{type: 'gutter', class: 'linter-error'}`
|
# * `decorationParams` An {Object} representing the decoration e.g. `{type: 'gutter', class: 'linter-error'}`
|
||||||
# * `type` There are a few supported decoration types: `gutter`, `line`, and `highlight`
|
# * `type` There are a few supported decoration types: `gutter`, `line`, and `highlight`
|
||||||
# * `class` This CSS class will be applied to the decorated line number,
|
# * `class` This CSS class will be applied to the decorated line number,
|
||||||
# line, or highlight.
|
# line, or highlight.
|
||||||
@ -2371,7 +2371,7 @@ class TextEditor extends Model
|
|||||||
###
|
###
|
||||||
|
|
||||||
# Essential: Returns a {ScopeDescriptor} that includes this editor's language.
|
# Essential: Returns a {ScopeDescriptor} that includes this editor's language.
|
||||||
# eg. `['.source.ruby']`, or `['.source.coffee']`. You can use this with
|
# e.g. `['.source.ruby']`, or `['.source.coffee']`. You can use this with
|
||||||
# {Config::get} to get language specific config values.
|
# {Config::get} to get language specific config values.
|
||||||
getRootScopeDescriptor: ->
|
getRootScopeDescriptor: ->
|
||||||
@displayBuffer.getRootScopeDescriptor()
|
@displayBuffer.getRootScopeDescriptor()
|
||||||
@ -2398,7 +2398,7 @@ class TextEditor extends Model
|
|||||||
# For example, if you wanted to find the string surrounding the cursor, you
|
# For example, if you wanted to find the string surrounding the cursor, you
|
||||||
# could call `editor.bufferRangeForScopeAtCursor(".string.quoted")`.
|
# could call `editor.bufferRangeForScopeAtCursor(".string.quoted")`.
|
||||||
#
|
#
|
||||||
# * `scopeSelector` {String} selector. eg. `'.source.ruby'`
|
# * `scopeSelector` {String} selector. e.g. `'.source.ruby'`
|
||||||
#
|
#
|
||||||
# Returns a {Range}.
|
# Returns a {Range}.
|
||||||
bufferRangeForScopeAtCursor: (scopeSelector) ->
|
bufferRangeForScopeAtCursor: (scopeSelector) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user