Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP] DNS_CAA type constant missing from PHP/PHP Source.sublime-syntax #991

Closed
alister opened this issue May 23, 2017 · 1 comment · Fixed by #2275
Closed

[PHP] DNS_CAA type constant missing from PHP/PHP Source.sublime-syntax #991

alister opened this issue May 23, 2017 · 1 comment · Fixed by #2275

Comments

@alister
Copy link

alister commented May 23, 2017

echo DNS_CAA, DNS_A, DNS_CNAME, DNS_HINFO, DNS_MX, DNS_NS, 
     DNS_PTR, DNS_SOA, DNS_TXT, DNS_AAAA, DNS_SRV, DNS_NAPTR,
     DNS_A6, DNS_ALL, DNS_ANY;

If the above line is put into PHP/syntax_test_php.php, the first item, DNS_CAA is highlighted differently to the rest of the line. According to the dns_get_record#type parameter list, it is a valid constant.

@jfcherng
Copy link
Collaborator

jfcherng commented May 23, 2017

We can show all PHP constants by

<?php

print_r(get_defined_constants(true));

Here's the output on my machine.
Maybe we can add/check missing built-in (and/or some common extensions) constants.

jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jun 7, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
@jfcherng jfcherng mentioned this issue Jun 7, 2020
19 tasks
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 15, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 16, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 17, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 18, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 18, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
jfcherng added a commit to jfcherng-sublime/ST-Official-Packages that referenced this issue Jul 21, 2020
Fixes sublimehq#991

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
wbond pushed a commit that referenced this issue Jul 21, 2020
* [PHP] Add some built-in classes and constants

Classes:

ArgumentCountError
ArithmeticError
CompileError
DivisionByZeroError
Error
ParseError
Stringable
TypeError
ValueError
WeakMap
WeakReference

---

Constants:

FILTER_VALIDATE_BOOL

---

https://github.com/symfony/polyfill-php80
https://wiki.php.net/rfc/stringable
https://wiki.php.net/rfc/weak_maps
https://www.php.net/manual/en/reserved.exceptions.php
https://www.php.net/manual/en/spl.exceptions.php

* [PHP] Add support for union types

https://wiki.php.net/rfc/union_types_v2

* [PHP] Add support for "static" return type

https://wiki.php.net/rfc/static_return_type

* [PHP] Add core function: str_contains

https://wiki.php.net/rfc/str_contains

* [PHP] Add core function: get_debug_type

* [PHP] Add built-in class: DateTimeImmutable, DateTimeInterface

* [PHP] Add core function: fdiv

php/php-src#4769

* [PHP] Add built-in class: PhpToken

https://wiki.php.net/rfc/token_as_object

* [PHP] Add core function: str_starts_with, str_ends_with

https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions

* [PHP] Add support for short attributes ("@@")

https://wiki.php.net/rfc/attributes_v2
https://wiki.php.net/rfc/attribute_amendments
https://wiki.php.net/rfc/shorter_attribute_syntax

* [PHP] Add support for "mixed" type hinting

https://wiki.php.net/rfc/mixed_type_v2

* [PHP] Add support for constructor property promotion

https://wiki.php.net/rfc/constructor_promotion

* [PHP] Extract visibility modifier as a variable

* [PHP] Add missing constant: DNS_CAA

Fixes #991

* [PHP] Add support for "match" expression

https://wiki.php.net/rfc/match_expression_v2

* [PHP] Add snippet: fn ...

* [PHP] Add snippet: match ...

* [PHP] Add support for named arguments

https://wiki.php.net/rfc/named_params

* [PHP] Add support for nullsafe operator

https://wiki.php.net/rfc/nullsafe_operator

* [PHP] Add core function: get_resource_id

php/php-src#5427

* [PHP] Add built-in class: InternalIterator

php/php-src#5216

* [PHP] Syntax definition use "version: 2"

* [PHP] Fix punctuation scopes have no begin/end
mitranim pushed a commit to mitranim/Packages that referenced this issue Mar 25, 2022
* [PHP] Add some built-in classes and constants

Classes:

ArgumentCountError
ArithmeticError
CompileError
DivisionByZeroError
Error
ParseError
Stringable
TypeError
ValueError
WeakMap
WeakReference

---

Constants:

FILTER_VALIDATE_BOOL

---

https://github.com/symfony/polyfill-php80
https://wiki.php.net/rfc/stringable
https://wiki.php.net/rfc/weak_maps
https://www.php.net/manual/en/reserved.exceptions.php
https://www.php.net/manual/en/spl.exceptions.php

* [PHP] Add support for union types

https://wiki.php.net/rfc/union_types_v2

* [PHP] Add support for "static" return type

https://wiki.php.net/rfc/static_return_type

* [PHP] Add core function: str_contains

https://wiki.php.net/rfc/str_contains

* [PHP] Add core function: get_debug_type

* [PHP] Add built-in class: DateTimeImmutable, DateTimeInterface

* [PHP] Add core function: fdiv

php/php-src#4769

* [PHP] Add built-in class: PhpToken

https://wiki.php.net/rfc/token_as_object

* [PHP] Add core function: str_starts_with, str_ends_with

https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions

* [PHP] Add support for short attributes ("@@")

https://wiki.php.net/rfc/attributes_v2
https://wiki.php.net/rfc/attribute_amendments
https://wiki.php.net/rfc/shorter_attribute_syntax

* [PHP] Add support for "mixed" type hinting

https://wiki.php.net/rfc/mixed_type_v2

* [PHP] Add support for constructor property promotion

https://wiki.php.net/rfc/constructor_promotion

* [PHP] Extract visibility modifier as a variable

* [PHP] Add missing constant: DNS_CAA

Fixes sublimehq#991

* [PHP] Add support for "match" expression

https://wiki.php.net/rfc/match_expression_v2

* [PHP] Add snippet: fn ...

* [PHP] Add snippet: match ...

* [PHP] Add support for named arguments

https://wiki.php.net/rfc/named_params

* [PHP] Add support for nullsafe operator

https://wiki.php.net/rfc/nullsafe_operator

* [PHP] Add core function: get_resource_id

php/php-src#5427

* [PHP] Add built-in class: InternalIterator

php/php-src#5216

* [PHP] Syntax definition use "version: 2"

* [PHP] Fix punctuation scopes have no begin/end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants