Skip to content

Update php_highlight_rules.js #5819

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/mode/php_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,8 @@
ziparchive_getfromindex|ziparchive_getfromname|ziparchive_getnameindex|ziparchive_getstatusstring|ziparchive_getstream|\
ziparchive_locatename|ziparchive_open|ziparchive_renameindex|ziparchive_renamename|ziparchive_setCommentName|ziparchive_setarchivecomment|\
ziparchive_setcommentindex|ziparchive_statindex|ziparchive_statname|ziparchive_unchangeall|ziparchive_unchangearchive|\
ziparchive_unchangeindex|ziparchive_unchangename|zlib_get_coding_type'.split('|')
ziparchive_unchangeindex|ziparchive_unchangename|zlib_get_coding_type|array_is_list|fdatasync|fdiv|fsync|get_debug_type|get_resource_id|\
json_validate|mb_str_pad|mysqli_execute_query|preg_last_error_msg|stream_context_set_options|str_contains|str_ends_with|str_starts_with'.split('|')
Comment on lines +817 to +818
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it would be nice to have these sorted like the other ones

);

// http://php.net/manual/en/reserved.keywords.php
Expand All @@ -825,7 +826,7 @@
);

// http://php.net/manual/en/reserved.keywords.php
var languageConstructs = lang.arrayToMap(

Check warning on line 829 in src/mode/php_highlight_rules.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'languageConstructs' is assigned a value but never used
('__halt_compiler|die|echo|empty|exit|eval|include|include_once|isset|list|require|require_once|return|print|unset').split('|')
);

Expand All @@ -840,7 +841,7 @@

// Discovery done by downloading 'Many HTML files' from: http://php.net/download-docs.php
// Then search for files containing 'deprecated' (case-insensitive) and look at each file that turns up.
var builtinFunctionsDeprecated = lang.arrayToMap(

Check warning on line 844 in src/mode/php_highlight_rules.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'builtinFunctionsDeprecated' is assigned a value but never used
'key_exists|cairo_matrix_create_scale|cairo_matrix_create_translate|call_user_method|call_user_method_array|com_addref|com_get|\
com_invoke|com_isenum|com_load|com_release|com_set|connection_timeout|cubrid_load_from_glo|cubrid_new_glo|cubrid_save_to_glo|\
cubrid_send_glo|define_syslog_variables|dl|ereg|ereg_replace|eregi|eregi_replace|hw_documentattributes|hw_documentbodytag|\
Expand Down Expand Up @@ -870,7 +871,7 @@
sql_regcase'.split('|')
);

var keywordsDeprecated = lang.arrayToMap(

Check warning on line 874 in src/mode/php_highlight_rules.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'keywordsDeprecated' is assigned a value but never used
('cfunction|old_function').split('|')
);

Expand Down