Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,23 @@
}
]
},
{
"name": "scopes/clojure/textFragment.regularExpression",
"languageId": "clojure",
"facet": "textFragment.regularExpression",
"code": "#\"^\\w+$\"",
"scopes": [
{
"targets": [
{
"content": "0:2-0:7",
"removal": "0:2-0:7"
}
],
"domain": "0:2-0:7"
}
]
},
{
"name": "scopes/clojure/textFragment.string.multiLine",
"languageId": "clojure",
Expand Down Expand Up @@ -526,6 +543,23 @@
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.regularExpression",
"languageId": "javascript.core",
"facet": "textFragment.regularExpression",
"code": "/^\\w+$/g",
"scopes": [
{
"targets": [
{
"content": "0:1-0:6",
"removal": "0:1-0:6"
}
],
"domain": "0:1-0:6"
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.string.multiLine",
"languageId": "javascript.core",
Expand Down Expand Up @@ -1072,7 +1106,7 @@
]
},
{
"name": "scopes/ruby/textFragment.comment.block",
"name": "scopes/ruby/textFragment/textFragment.comment.block",
"languageId": "ruby",
"facet": "textFragment.comment.block",
"code": "=begin\nHello world\n=end",
Expand All @@ -1089,7 +1123,7 @@
]
},
{
"name": "scopes/ruby/textFragment.comment.line",
"name": "scopes/ruby/textFragment/textFragment.comment.line",
"languageId": "ruby",
"facet": "textFragment.comment.line",
"code": "# Hello world",
Expand All @@ -1106,7 +1140,24 @@
]
},
{
"name": "scopes/ruby/textFragment.string.multiLine",
"name": "scopes/ruby/textFragment/textFragment.regularExpression",
"languageId": "ruby",
"facet": "textFragment.regularExpression",
"code": "/^\\w+$/g",
"scopes": [
{
"targets": [
{
"content": "0:1-0:6",
"removal": "0:1-0:6"
}
],
"domain": "0:1-0:6"
}
]
},
{
"name": "scopes/ruby/textFragment/textFragment.string.multiLine",
"languageId": "ruby",
"facet": "textFragment.string.multiLine",
"code": "\"Hello\nworld\"",
Expand All @@ -1123,7 +1174,7 @@
]
},
{
"name": "scopes/ruby/textFragment.string.singleLine",
"name": "scopes/ruby/textFragment/textFragment.string.singleLine",
"languageId": "ruby",
"facet": "textFragment.string.singleLine",
"code": "\"Hello world\"",
Expand Down Expand Up @@ -1377,6 +1428,23 @@
}
]
},
{
"name": "scopes/shellscript/textFragment.regularExpression",
"languageId": "shellscript",
"facet": "textFragment.regularExpression",
"code": "[[ $foo =~ ^\\w+$ ]]",
"scopes": [
{
"targets": [
{
"content": "0:11-0:16",
"removal": "0:11-0:17"
}
],
"domain": "0:11-0:16"
}
]
},
{
"name": "scopes/shellscript/textFragment.string.multiLine",
"languageId": "shellscript",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The following are internal scopes. They are not intended for user interaction or

##### Ruby

<ScopeVisualizer fixtureName="scopes/ruby/textFragment.comment.block" />
<ScopeVisualizer fixtureName="scopes/ruby/textFragment/textFragment.comment.block" />

##### Rust

Expand Down Expand Up @@ -177,7 +177,7 @@ The following are internal scopes. They are not intended for user interaction or

##### Ruby

<ScopeVisualizer fixtureName="scopes/ruby/textFragment.comment.line" />
<ScopeVisualizer fixtureName="scopes/ruby/textFragment/textFragment.comment.line" />

##### Rust

Expand Down Expand Up @@ -233,6 +233,26 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/xml/textFragment.element" />

### Text fragment: Regular expression

<i>Internally used text fragment consisting of a regular expression literal pattern</i>

##### Clojure

<ScopeVisualizer fixtureName="scopes/clojure/textFragment.regularExpression" />

##### JavaScript

<ScopeVisualizer fixtureName="scopes/javascript.core/textFragment/textFragment.regularExpression" />

##### Ruby

<ScopeVisualizer fixtureName="scopes/ruby/textFragment/textFragment.regularExpression" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/textFragment.regularExpression" />

### Text fragment: String multi line

<i>Internally used text fragment consisting of a multi-line string</i>
Expand Down Expand Up @@ -283,7 +303,7 @@ The following are internal scopes. They are not intended for user interaction or

##### Ruby

<ScopeVisualizer fixtureName="scopes/ruby/textFragment.string.multiLine" />
<ScopeVisualizer fixtureName="scopes/ruby/textFragment/textFragment.string.multiLine" />

##### Rust

Expand Down Expand Up @@ -367,7 +387,7 @@ The following are internal scopes. They are not intended for user interaction or

##### Ruby

<ScopeVisualizer fixtureName="scopes/ruby/textFragment.string.singleLine" />
<ScopeVisualizer fixtureName="scopes/ruby/textFragment/textFragment.string.singleLine" />

##### Rust

Expand Down
18 changes: 16 additions & 2 deletions packages/app-web-docs/src/docs/user/languages/clojure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ Below are visualizations of all our scope tests for this language. These were cr

<ScopeVisualizer fixtureName="scopes/clojure/namedFunction.iteration.document" languageId="clojure" />

### Regular expression

#### 1. Regular expression

<i>A regular expression</i>

<ScopeVisualizer fixtureName="scopes/clojure/regularExpression" languageId="clojure" />

## Internal scopes

The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality.
Expand Down Expand Up @@ -179,13 +187,19 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/clojure/textFragment.comment.line" languageId="clojure" />

#### 2. Text fragment: String multi line
#### 2. Text fragment: Regular expression

<i>Internally used text fragment consisting of a regular expression literal pattern</i>

<ScopeVisualizer fixtureName="scopes/clojure/textFragment.regularExpression" languageId="clojure" />

#### 3. Text fragment: String multi line

<i>Internally used text fragment consisting of a multi-line string</i>

<ScopeVisualizer fixtureName="scopes/clojure/textFragment.string.multiLine" languageId="clojure" />

#### 3. Text fragment: String single line
#### 4. Text fragment: String single line

<i>Internally used text fragment consisting of a single-line string</i>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,23 @@
}
]
},
{
"name": "scopes/clojure/regularExpression",
"languageId": "clojure",
"facet": "regularExpression",
"code": "#\"^\\w+$\"",
"scopes": [
{
"targets": [
{
"content": "0:0-0:8",
"removal": "0:0-0:8"
}
],
"domain": "0:0-0:8"
}
]
},
{
"name": "scopes/clojure/string.multiLine",
"languageId": "clojure",
Expand Down Expand Up @@ -459,6 +476,23 @@
}
]
},
{
"name": "scopes/clojure/textFragment.regularExpression",
"languageId": "clojure",
"facet": "textFragment.regularExpression",
"code": "#\"^\\w+$\"",
"scopes": [
{
"targets": [
{
"content": "0:2-0:7",
"removal": "0:2-0:7"
}
],
"domain": "0:2-0:7"
}
]
},
{
"name": "scopes/clojure/textFragment.string.multiLine",
"languageId": "clojure",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5954,6 +5954,23 @@
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.regularExpression",
"languageId": "javascript.core",
"facet": "textFragment.regularExpression",
"code": "/^\\w+$/g",
"scopes": [
{
"targets": [
{
"content": "0:1-0:6",
"removal": "0:1-0:6"
}
],
"domain": "0:1-0:6"
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.string.multiLine",
"languageId": "javascript.core",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5954,6 +5954,23 @@
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.regularExpression",
"languageId": "javascript.core",
"facet": "textFragment.regularExpression",
"code": "/^\\w+$/g",
"scopes": [
{
"targets": [
{
"content": "0:1-0:6",
"removal": "0:1-0:6"
}
],
"domain": "0:1-0:6"
}
]
},
{
"name": "scopes/javascript.core/textFragment/textFragment.string.multiLine",
"languageId": "javascript.core",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3294,7 +3294,7 @@
]
},
{
"name": "scopes/ruby/textFragment.comment.block",
"name": "scopes/ruby/textFragment/textFragment.comment.block",
"languageId": "ruby",
"facet": "textFragment.comment.block",
"code": "=begin\nHello world\n=end",
Expand All @@ -3311,7 +3311,7 @@
]
},
{
"name": "scopes/ruby/textFragment.comment.line",
"name": "scopes/ruby/textFragment/textFragment.comment.line",
"languageId": "ruby",
"facet": "textFragment.comment.line",
"code": "# Hello world",
Expand All @@ -3328,7 +3328,24 @@
]
},
{
"name": "scopes/ruby/textFragment.string.multiLine",
"name": "scopes/ruby/textFragment/textFragment.regularExpression",
"languageId": "ruby",
"facet": "textFragment.regularExpression",
"code": "/^\\w+$/g",
"scopes": [
{
"targets": [
{
"content": "0:1-0:6",
"removal": "0:1-0:6"
}
],
"domain": "0:1-0:6"
}
]
},
{
"name": "scopes/ruby/textFragment/textFragment.string.multiLine",
"languageId": "ruby",
"facet": "textFragment.string.multiLine",
"code": "\"Hello\nworld\"",
Expand All @@ -3345,7 +3362,7 @@
]
},
{
"name": "scopes/ruby/textFragment.string.singleLine",
"name": "scopes/ruby/textFragment/textFragment.string.singleLine",
"languageId": "ruby",
"facet": "textFragment.string.singleLine",
"code": "\"Hello world\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,23 @@
}
]
},
{
"name": "scopes/shellscript/textFragment.regularExpression",
"languageId": "shellscript",
"facet": "textFragment.regularExpression",
"code": "[[ $foo =~ ^\\w+$ ]]",
"scopes": [
{
"targets": [
{
"content": "0:11-0:16",
"removal": "0:11-0:17"
}
],
"domain": "0:11-0:16"
}
]
},
{
"name": "scopes/shellscript/textFragment.string.multiLine",
"languageId": "shellscript",
Expand Down
Loading
Loading