Skip to content

Conversation

@BlueDrink9
Copy link
Contributor

Also a tiny correction to the vimscript comment - add the missing space after "

@FireChickenProductivity
Copy link
Contributor

We are intentionally moving away from state as a prefix in community. Could you instead use something else for the na commands? Based on a quick google search, those are r keywords. If that is correct, could you move those over to keyword support?

@BlueDrink9
Copy link
Contributor Author

oh really? I hadn't realised we were moving away, I can migrate the lot to more preferred terms. state has so far been very good to me so far ha

@FireChickenProductivity
Copy link
Contributor

The issue with state is that state was originally intended for referring to statements (such as state while) but unfortunately morphed into the default prefix. If those are in fact keywords, you could move them to a user.code_keyword list for r and make r activate the user.code_keywords tag.

language: vimscript
-
"$0
" $0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please split this out into a separate PR since it has nothing to do with R.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's true, but is it really necessary? This change is tiny

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes :) The PR will also be tiny.

Comment on lines 32 to +36
state na: insert("NA")
state na character: insert("NA_character_")
state na real: insert("NA_real_")
state na complex: insert("NA_complex_")
state na integer: insert("NA_integer_")
Copy link
Collaborator

@nriley nriley Jan 31, 2026

Choose a reason for hiding this comment

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

From the Community Backlog Session — since all of these are reserved words/keywords in the R language, we should switch these over to keywords. Please add a deprecation for "state na".

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 this pull request may close these issues.

3 participants