Get the text after the `/**` trigger position, skipping the rest of the trigger line.
(content: &str, position: Position)
| 492 | /// Get the text after the `/**` trigger position, skipping the rest of |
| 493 | /// the trigger line. |
| 494 | fn get_text_after_trigger(content: &str, position: Position) -> String { |
| 495 | let byte_offset = position_to_byte_offset(content, position); |
| 496 | let after = &content[byte_offset.min(content.len())..]; |
| 497 | |
| 498 | // Skip to the next line (the trigger line has `/**` and possibly |
| 499 | // nothing else useful). |
| 500 | if let Some(nl) = after.find('\n') { |
| 501 | after[nl + 1..].to_string() |
| 502 | } else { |
| 503 | String::new() |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | /// Classify the PHP symbol from the first meaningful tokens after the |
| 508 | /// trigger. |
no test coverage detected