This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | php tags in yaml should be ignored during syntax checking | ||
---|---|---|---|
Product: | php | Reporter: | humphrey <humphrey> |
Component: | Symfony | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | ppisl |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
humphrey
2009-07-13 16:48:25 UTC
Since it is not a valid YAML file, changing to an enahncement but agreed that it would be really nice to have. Petre, could you please try to estimate how much work it would be? Thanks a lot. The first things is how to recognize that a yaml file contains php? Does have these files a special extension? I'm thinking from mimeresolver point of view. If we will be able to know that there is a php inside the file, than it can be handled as a yaml+php mimetype and there shouldn't be so much work. Unfortunately not - just ordinary extension but with PHP blocks inside. Example: ----- %< ----- <?php for ($i = 100; $i <= 130; $i++): ?> job_<?php echo $i ?>: JobeetCategory: programming company: Company <?php echo $i."\n" ?> position: Web Developer location: Paris, France description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. how_to_apply: | Send your resume to lorem.ipsum [at] company_<?php echo $i ?>.sit is_public: true is_activated: true token: job_<?php echo $i."\n" ?> email: job@example.com <?php endfor; ?> ----- %< ----- I have fixed this and add php coloring into yaml files. Change 9f6af654bb01. great, thanks for the fix, much appreciated! Integrated into 'main-golden', will be available in build *200909040632* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9f6af654bb01 User: Petr Pisl <ppisl@netbeans.org> Log: #168497 - http://www.netbeans.org/issues/show_bug.cgi?id=168497 Now only php lexer works in yaml files. There are not still available other php editor features like cc. |