-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-strings' into fix-runaway-regex
- Loading branch information
Showing
8 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,8 @@ patterns: | |
captures: | ||
1: | ||
name: comment.line | ||
|
||
# Strings | ||
- begin: \" | ||
end: \" | ||
name: string.quoted.double | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SYNTAX TEST "source.metamodelica" "Function with doc string" | ||
|
||
public function foo | ||
"Function does crazy stuff --fmiFlags | ||
and creates an awesome record for stuff. | ||
Author: ItIsI" | ||
input Boolean isAwesome = true; | ||
//^^^^^ source.metamodelica keyword.control | ||
// ^^^^^^^ source.metamodelica storage.type | ||
// ^^^^ source.metamodelica constant.language | ||
output Option<SimCode.Awesome> awesome; | ||
//^^^^^^ source.metamodelica keyword.control | ||
// ^^^^^^^^^^^^^^^^^^^^^^^ source.metamodelica storage.type | ||
// [...] | ||
end foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SYNTAX TEST "source.modelica" "Function with doc string" | ||
|
||
public function foo | ||
"Function does crazy stuff --fmiFlags | ||
and creates an awesome record for stuff. | ||
Author: ItIsI" | ||
input Boolean isAwesome = true; | ||
//^^^^^ source.modelica keyword.control | ||
// ^^^^^^^ source.modelica storage.type | ||
// ^^^^ source.modelica constant.language | ||
output MyRecord awesome; | ||
//^^^^^^ source.modelica keyword.control | ||
// [...] | ||
//<--- source.modelica comment.line | ||
//^^^^^^ source.modelica comment.line | ||
end foo; | ||
//<--- source.modelica keyword | ||
// ^^^ source.modelica entity.name.type |