Skip to content

Commit

Permalink
more for #5623
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jul 19, 2024
1 parent c090a75 commit cfbcf65
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/cudatext.app/Contents/Resources/data/lexlib/JSDoc.lcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
object SyntAnal12: TLibSyntAnalyzer
object SyntAnal10: TLibSyntAnalyzer
Formats = <
item
DisplayName = 'Comment doc'
Expand Down Expand Up @@ -87,7 +87,7 @@ object SyntAnal12: TLibSyntAnalyzer
item
DisplayName = 'Comment'
StyleName = 'Comment doc'
Expression = '\*|[^\x20\x09\n\r]+'
Expression = '[^\x20\x09\n\r\*/]+'
ColumnFrom = 0
ColumnTo = 0
end>
Expand Down
14 changes: 10 additions & 4 deletions app/cudatext.app/Contents/Resources/data/lexlib/JavaScript.lcf
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,20 @@ object SyntAnal9: TLibSyntAnalyzer
ColumnTo = 0
end
item
DisplayName = 'Comment doc'
DisplayName = 'Comment doc begin'
StyleName = 'Comment doc'
StatesAdd = 1
StatesAbsent = 1
TokenType = 1
Expression = '(?s)/\*\*.*?(\*/|\Z)'
Expression = '/\*{2,}'
ColumnFrom = 0
ColumnTo = 0
end
item
DisplayName = 'Comment doc end-only'
DisplayName = 'Comment doc end'
StyleName = 'Comment doc'
StatesRemove = 1
StatesPresent = 1
TokenType = 1
Expression = '\*/'
ColumnFrom = 0
Expand Down Expand Up @@ -957,8 +961,10 @@ object SyntAnal9: TLibSyntAnalyzer
end
item
DisplayName = 'JSDoc'
StatesAdd = 1
StatesRemove = 1
StartExpression = '/\*{2,}(?!/)'
EndExpression = '[^/\*\n\r]*?\*/'
EndExpression = '\*/'
SyntAnalyzer = SyntAnal10
end>
SampleText.Strings = (
Expand Down
4 changes: 2 additions & 2 deletions app/data/lexlib/JSDoc.lcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
object SyntAnal12: TLibSyntAnalyzer
object SyntAnal10: TLibSyntAnalyzer
Formats = <
item
DisplayName = 'Comment doc'
Expand Down Expand Up @@ -87,7 +87,7 @@ object SyntAnal12: TLibSyntAnalyzer
item
DisplayName = 'Comment'
StyleName = 'Comment doc'
Expression = '\*|[^\x20\x09\n\r]+'
Expression = '[^\x20\x09\n\r\*/]+'
ColumnFrom = 0
ColumnTo = 0
end>
Expand Down
14 changes: 10 additions & 4 deletions app/data/lexlib/JavaScript.lcf
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,20 @@ object SyntAnal9: TLibSyntAnalyzer
ColumnTo = 0
end
item
DisplayName = 'Comment doc'
DisplayName = 'Comment doc begin'
StyleName = 'Comment doc'
StatesAdd = 1
StatesAbsent = 1
TokenType = 1
Expression = '(?s)/\*\*.*?(\*/|\Z)'
Expression = '/\*{2,}'
ColumnFrom = 0
ColumnTo = 0
end
item
DisplayName = 'Comment doc end-only'
DisplayName = 'Comment doc end'
StyleName = 'Comment doc'
StatesRemove = 1
StatesPresent = 1
TokenType = 1
Expression = '\*/'
ColumnFrom = 0
Expand Down Expand Up @@ -957,8 +961,10 @@ object SyntAnal9: TLibSyntAnalyzer
end
item
DisplayName = 'JSDoc'
StatesAdd = 1
StatesRemove = 1
StartExpression = '/\*{2,}(?!/)'
EndExpression = '[^/\*\n\r]*?\*/'
EndExpression = '\*/'
SyntAnalyzer = SyntAnal10
end>
SampleText.Strings = (
Expand Down

0 comments on commit cfbcf65

Please sign in to comment.