Skip to content

Commit 8a7d5ba

Browse files
authored
Merge branch 'master' into master
2 parents 3e5fdb8 + f3f5d58 commit 8a7d5ba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

grammars/scala.cson

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'fileTypes': [
22
'scala',
3+
'sc',
34
'sbt'
45
]
56
'firstLineMatch': '^#!/.*\\b\\w*scala\\b'
@@ -316,7 +317,7 @@
316317
'name': 'keyword.declaration.scala'
317318
'2':
318319
'name': 'entity.name.function.declaration'
319-
'match': '(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[(\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)'
320+
'match': '(?x)\n\t\t\t\t\t\t\\b(def)\\s+\n\t\t\t\t\t\t(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[(\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)'
320321
}
321322
{
322323
'captures':
@@ -334,7 +335,7 @@
334335
'name': 'keyword.declaration.scala'
335336
'2':
336337
'name': 'entity.name.type.declaration'
337-
'match': '\\b(type)\\s+(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)'
338+
'match': '\\b(type)\\s+(`[^`]+`|[_$\\p{L}][_$a-z\\p{L}]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)'
338339
}
339340
{
340341
'captures':
@@ -344,7 +345,7 @@
344345
'name': 'keyword.declaration.volatile.scala'
345346
'3':
346347
'name': 'entity.name.val.declaration'
347-
'match': '\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$a-zA-Z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-zA-Z][_$a-zA-Z0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)|(?=\\())'
348+
'match': '\\b(?:(val)|(var))\\s+(?:(`[^`]+`|[_$\\p{L}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{L}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)|(?=\\())'
348349
}
349350
{
350351
'captures':
@@ -491,7 +492,7 @@
491492
'2':
492493
'name': 'meta.colon.scala'
493494
'comment': 'We do not match param names that start with a Capital letter'
494-
'match': '(?<=[^\\._$a-zA-Z0-9])(`[^`]+`|[_$a-z][_$a-zA-Z0-9]*(?:_[^\\s])(?=[\\t ])|[_$a-z][_$a-zA-Z0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)\\s*(:)\\s+'
495+
'match': '(?<=[^\\._$\\p{L}0-9])(`[^`]+`|[_$\\p{Ll}][_$\\p{L}0-9]*(?:_[^\\s])(?=[\\t ])|[_$\\p{Ll}][_$\\p{L}0-9]*|[!#%&*+\-/:<=>?@\\\\^|~]+)\\s*(:)\\s+'
495496
}
496497
]
497498
'qualifiedClassName':

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "language-scala",
3-
"version": "1.1.6",
3+
"version": "1.1.8",
44
"description": "Scala language support in Atom",
55
"repository": "https://github.com/jroesch/language-scala",
66
"license": "MIT",

0 commit comments

Comments
 (0)