Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
351e871f
Commit
351e871f
authored
Jan 08, 2012
by
Jordi Boggiano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for namespaced constants, fixes #9
parent
d3caa8b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Compiler.php
lib/Dwoo/Compiler.php
+1
-1
No files found.
lib/Dwoo/Compiler.php
View file @
351e871f
...
@@ -2006,7 +2006,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
...
@@ -2006,7 +2006,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
echo
'CONST FOUND : '
.
$substr
.
'<br />'
;
echo
'CONST FOUND : '
.
$substr
.
'<br />'
;
}
}
if
(
!
preg_match
(
'#^%([a-z0-9_:]+)#i'
,
$substr
,
$m
))
{
if
(
!
preg_match
(
'#^%([
\\\\
a-z0-9_:]+)#i'
,
$substr
,
$m
))
{
throw
new
Dwoo_Compilation_Exception
(
$this
,
'Invalid constant'
);
throw
new
Dwoo_Compilation_Exception
(
$this
,
'Invalid constant'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment