diff --git a/data/fixtures/recorded/languages/ruby/changeRound3.yml b/data/fixtures/recorded/languages/ruby/changeRound3.yml new file mode 100644 index 0000000000..a68cc317fa --- /dev/null +++ b/data/fixtures/recorded/languages/ruby/changeRound3.yml @@ -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} diff --git a/queries/ruby.scm b/queries/ruby.scm index 6d4a9a962f..cd22459dba 100644 --- a/queries/ruby.scm +++ b/queries/ruby.scm @@ -1,4 +1,4 @@ -(comment) @comment +(comment) @comment @textFragment (hash) @map (regex) @regularExpression (call) @functionCall