You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTest {
staticfunctionmain() {
varcode=' /* * THIS SOFTWARE IS PROVIDED BY THE HAXE PROJECT CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE HAXE PROJECT CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. */';
varhtml=highlighter.Highlighter.syntaxHighlightHaxe(code);
trace(html);
}
}
The above code gives runtime error for Neko:
Called from ? line 1
Called from Test.hx line 18
Called from highlighter/Highlighter.hx line 70
Called from /home/andy/.opam/4.06.1/share/haxe/std/neko/_std/EReg.hx line 105
Uncaught exception - An error occurred while running pcre_exec
Error: Command failed with error 1
It is because the content of the comment are highlighted and apparently too complex for the neko regexp to handle. For other targets, e.g. --interp, the output is:
The above code gives runtime error for Neko:
It is because the content of the comment are highlighted and apparently too complex for the neko regexp to handle. For other targets, e.g. --interp, the output is:
This is one source of some internal server errors found in lib.haxe.org. e.g. http://lib.haxe.org/p/HUGS/0.3.0/files/haxe/Log.hx
The text was updated successfully, but these errors were encountered: