Skip to content

Commit

Permalink
Add Ruby comment textFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed May 17, 2024
1 parent a783895 commit db984d0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions data/fixtures/recorded/languages/ruby/changeRound3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
languageId: ruby
command:
version: 7
spokenForm: change round
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: surroundingPair, delimiter: parentheses}
usePrePhraseSnapshot: true
initialState:
documentContents: "# (aaa)"
selections:
- anchor: {line: 0, character: 3}
active: {line: 0, character: 3}
marks: {}
finalState:
documentContents: "# "
selections:
- anchor: {line: 0, character: 2}
active: {line: 0, character: 2}
2 changes: 1 addition & 1 deletion queries/ruby.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(comment) @comment
(comment) @comment @textFragment
(hash) @map
(regex) @regularExpression
(call) @functionCall
Expand Down

0 comments on commit db984d0

Please sign in to comment.