ast-grep-language 0.42.3

Search and Rewrite code at large scale using precise AST pattern
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(test)]

use super::*;

fn test_match(query: &str, source: &str) {
  use crate::test::test_match_lang;
  test_match_lang(query, source, Php);
}

#[test]
fn test_php_pattern() {
  // dummy example, php pattern actually does not work
  test_match("123", "123");
}

// https://github.com/ast-grep/ast-grep/issues/639#issuecomment-1876622828
// TODO: better php support