apache / apache/netbeans

[PHP] Detection of syntax highlighting when using heredoc

Open
#5,010 4 comments 4 reactions 0 assignees View on GitHub
kind:feature needs:triage PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

The HereDoc syntax in PHP allows you to specify the string type.
I would like Netbeans to detect the type of string and apply syntax highlighting.

### Use case/motivation

If the string type starts with a type known to netbeans, apply syntax highlighting to the string
Currently:
![Capture d’écran du 2022-11-26 19-16-22](https://user-images.githubusercontent.com/10517497/204103817-d69dedc0-809e-4830-b38b-b3a81ac59b56.png)
Goal:
![Capture d’écran du 2022-11-26 19-16-39](https://user-images.githubusercontent.com/10517497/204103855-f328fbee-6f47-49cd-93a4-2f2d256d5fc7.png)

### Related issues

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by locating NetBeans' PHP heredoc lexer and the existing syntax-highlighting support for embedded or known string types. Done means recognized heredoc types receive the requested highlighting and regression coverage demonstrates the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.