Please sign in to comment.
OTWO-1300 Improves *.pl disambiguation to ignore smileys :-)
Smiley faces in Perl strings and comments look similar to Prolog rule syntax. This patch makes two improvements: - Better detection of perl shebangs (#!%PERL% now recognized) - A prolog ':-' token must be followed by a space or a newline
- Loading branch information...
Showing with 21 additions and 7 deletions.
|@@ -0,0 +1,3 @@|
|+% This is prolog code, but the shebang says perl, so we respect the shebang and choose perl.|
|+Head :- Body.|
|@@ -0,0 +1,2 @@|
|+# This is not prolog. Do not be confused by the smiley, which looks like a Prolog rule.|
|+print "Hello, world :-)\n"|