-
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.
Fix runaway regex in comment string detection (#42)
* Fix runaway regex in comment string detection * Adding tests * Update version --------- Co-authored-by: AnHeuermann <[email protected]>
- Loading branch information
1 parent
74d508e
commit 0355079
Showing
10 changed files
with
54 additions
and
13 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |