Skip to content

Commit

Permalink
Fix bad handling of compiler directive comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed Feb 5, 2025
1 parent 3d0b377 commit fd6d90b
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 11 deletions.
Binary file modified Build/4DPop-Macros.zip
Binary file not shown.
Binary file modified Build/Components/4DPop Macros.4dbase/Contents/4DPop Macros.4DZ
Binary file not shown.
4 changes: 2 additions & 2 deletions Build/Components/4DPop Macros.4dbase/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<key>CFBundleName</key>
<string>4DPop Macros</string>
<key>CFBundleVersion</key>
<string>301</string>
<string>302</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2009-2025</string>
<key>CFBundleGetInfoString</key>
<string>20R9</string>
<key>CFBundleLongVersionString</key>
<string>20R9 (300)</string>
<string>20R9 (301)</string>
<key>CFBundleShortVersionString</key>
<string>20R9</string>
<key>CFBundleDisplayName</key>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
</data>
<key>Resources/InfoPlist.strings</key>
<data>
SPyNEbqkmpc+gS6dVYeQlyNbvLE=
l43BPGcDJdYHapcj4IbX/xSrmOQ=
</data>
<key>Resources/constants.xlf</key>
<data>
Expand Down Expand Up @@ -376,7 +376,7 @@
<dict>
<key>cdhash</key>
<data>
4x3XEy2PdpFfM/8A+GotQRB5rJ4=
TomYuTkFTJQuRSkLPCmItMhEVew=
</data>
<key>requirement</key>
<string>identifier "4DPop Macros.4DZ" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = DYRKW64QA9</string>
Expand Down Expand Up @@ -473,11 +473,11 @@
<dict>
<key>hash</key>
<data>
q64Ff//XTk3AGTd1La9Z55BAtaA=
Rq2fsNo7dSo3wGbCvoYGUbFhIh8=
</data>
<key>hash2</key>
<data>
arsJUBWQZDkoKJ0Vbc7GelYWMRi5SmkjNk+vv1b8mq8=
q/sH4i9rRQTj+qV4Y30F1vROqrciNWpjuoeHrmIT1qI=
</data>
</dict>
<key>Resources/4DPop.json</key>
Expand Down Expand Up @@ -1276,11 +1276,11 @@
<dict>
<key>hash</key>
<data>
SPyNEbqkmpc+gS6dVYeQlyNbvLE=
l43BPGcDJdYHapcj4IbX/xSrmOQ=
</data>
<key>hash2</key>
<data>
xzK6MzJha5hFU/9sPVWakuzmHGXAoqedX+4sfNtlUkA=
7V8uNzOh5/Y3qJbwbMR2H8u83xy6EUUi76qq7OXUtqE=
</data>
</dict>
<key>Resources/constants.xlf</key>
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<key>CFBundleName</key>
<string>4DPop Macros</string>
<key>CFBundleVersion</key>
<string>301</string>
<string>302</string>
<key>NSHumanReadableCopyright</key>
<string>©vdl 2009-2025</string>
<key>CFBundleGetInfoString</key>
<string>20R9</string>
<key>CFBundleLongVersionString</key>
<string>20R9 (300)</string>
<string>20R9 (301)</string>
<key>CFBundleShortVersionString</key>
<string>20R9</string>
<key>CFBundleDisplayName</key>
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Classes/macro.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Function isReservedComment($line : Text) : Boolean
return ($line=(kCommentMark+"}"))\
|| ($line=(kCommentMark+"]"))\
|| ($line=(kCommentMark+")"))\
|| (Match regex:C1019("(?m-si)^//%[A-Z][-+]$"; $line; 1; *))\
|| (Match regex:C1019("(?mi-s)^//%[A-Z][+-]\\d{3}\\.\\d+$"; $line; 1; *))\
|| (Match regex:C1019("(?mi-s)^/\\*.*\\*/$"; $line; 1; *))

// === === === === === === === === === === === === === === === === === === === === === === === === === ===
Expand Down
5 changes: 5 additions & 0 deletions Project/Sources/Methods/DECLARATION_Test.4dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
//%attributes = {"invisible":true,"preemptive":"capable"}
////%W-518.1
//COPY ARRAY($icons; $3->)
////%W+518.1


//comment

var $i : Integer //tset
Expand Down
Binary file modified Resources/InfoPlist.strings
Binary file not shown.

0 comments on commit fd6d90b

Please sign in to comment.