Skip to content

Commit

Permalink
fix beautifier with URI
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed May 31, 2024
1 parent 794e37a commit 3fefdbc
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 15 deletions.
Binary file added Build/4DPop-Macros.dmg
Binary file not shown.
Binary file added Build/4DPop-Macros.zip
Binary file not shown.
Binary file modified Build/Components/4DPop Macros.4dbase/4DPop Macros.4DZ
Binary file not shown.
8 changes: 4 additions & 4 deletions Build/Components/4DPop Macros.4dbase/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<key>CFBundleName</key>
<string>4DPop Macros</string>
<key>CFBundleVersion</key>
<string>281</string>
<string>282</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2009-2024</string>
<key>CFBundleGetInfoString</key>
<string>20R5</string>
<string>20R6</string>
<key>CFBundleLongVersionString</key>
<string>20R5 (280)</string>
<string>20R6 (281)</string>
<key>CFBundleShortVersionString</key>
<string>20R5</string>
<string>20R6</string>
<key>CFBundleDisplayName</key>
<string>4DPop Macros</string>
</dict>
Expand Down
Binary file modified Build/Components/4DPop Macros.4dbase/Libraries/lib4d-arm64.dylib
Binary file not shown.
Binary file modified Build/Components/4DPop Macros.4dbase/Resources/InfoPlist.strings
Binary file not shown.
8 changes: 4 additions & 4 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<key>CFBundleName</key>
<string>4DPop Macros</string>
<key>CFBundleVersion</key>
<string>281</string>
<string>282</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2009-2024</string>
<key>CFBundleGetInfoString</key>
<string>20R5</string>
<string>20R6</string>
<key>CFBundleLongVersionString</key>
<string>20R5 (280)</string>
<string>20R6 (281)</string>
<key>CFBundleShortVersionString</key>
<string>20R5</string>
<string>20R6</string>
<key>CFBundleDisplayName</key>
<string>4DPop Macros</string>
</dict>
Expand Down
5 changes: 3 additions & 2 deletions Project/4DPop Macros.4DProject
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"$comment": "The project file let you override the location for most folders"
}
"$comment": "The project file let you override the location for most folders",
"$4DPopAppMakerToolVersion": "20R6"
}
8 changes: 5 additions & 3 deletions Project/Sources/Classes/beautifier.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ Class constructor()
EndForEach: Replace string:C233($t; "{control}"; This:C1470._controls.endForEach); \
CaseOfItem: "(?<!"+kCommentMark+")\\r*(\\r:\\s\\([^\\r]*\\r)\\r*"; \
BeginSQL: "(?<!"+kCommentMark+")^(?:/\\*.*\\*/)?"+Command name:C538(948); \
EndSQL: "(?<!"+kCommentMark+")^(?:/\\*.*\\*/)?"+Command name:C538(949)\
EndSQL: "(?<!"+kCommentMark+")^(?:/\\*.*\\*/)?"+Command name:C538(949); \
var: "(?mi-s)^var\\\\s*[^:]*)"\
}

This:C1470._patterns.closure:="(?<!"+kCommentMark+")(?:"+[\
Expand Down Expand Up @@ -533,8 +534,9 @@ Function beautify()
// Add a space before the comment and capitalize the first letter
If ($options.formatComments)\
&& (Position:C15(kCommentMark; $line)#0)\
&& (Position:C15(kCommentMark+"%"; $line)=0)\
&& Not:C34(This:C1470.rgx.setPattern(This:C1470._patterns.commentLine).match())
&& /* not compiler directive */(Position:C15(kCommentMark+"%"; $line)=0)\
&& /* not URI */Not:C34(This:C1470.rgx.setPattern("(?mi-s)\"[^:]*://").match())\
&& /* not separator line */Not:C34(This:C1470.rgx.setPattern(This:C1470._patterns.commentLine).match())

$line:=This:C1470._formatComment($line)

Expand Down
3 changes: 2 additions & 1 deletion Project/Sources/Classes/declaration.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ Class constructor
varObject: Replace string:C233($t; "{type}"; "Object"); \
varClass: Replace string:C233($t; "{type}"; "(?:4d|cs)\\.\\w*"); \
varCollection: Replace string:C233($t; "{type}"; "Collection"); \
varVariant: Replace string:C233($t; "{type}"; "Variant")\
varVariant: Replace string:C233($t; "{type}"; "Variant"); \
varWithAssignment: "\"(?mi-s)^var\\\\s*(?:[^:]*:){2}=\""\
}

var $icon : Picture
Expand Down
Binary file modified Resources/InfoPlist.strings
Binary file not shown.
1 change: 0 additions & 1 deletion lastbuild

This file was deleted.

0 comments on commit 3fefdbc

Please sign in to comment.