Why is Sublime Text 3.2 highlighting commas after values that start with “for” in Python...
Hacking a Safe Lock after 3 tries
Are there other languages, besides English, where the indefinite (or definite) article varies based on sound?
Are there verbs that are neither telic, or atelic?
Why did it take so long to abandon sail after steamships were demonstrated?
Gravity magic - How does it work?
Welcoming 2019 Pi day: How to draw the letter π?
Can I use USB data pins as power source
Why would a flight no longer considered airworthy be redirected like this?
What did Alexander Pope mean by "Expletives their feeble Aid do join"?
Time travel from stationary position?
Have researchers managed to "reverse time"? If so, what does that mean for physics?
Use of undefined constant bloginfo
Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is
My adviser wants to be the first author
Can a druid choose the size of its wild shape beast?
How do anti-virus programs start at Windows boot?
Why do passenger jet manufacturers design their planes with stall prevention systems?
Why doesn't using two cd commands in bash script execute the second command?
Python if-else code style for reduced code for rounding floats
Existence of subset with given Hausdorff dimension
Sailing the cryptic seas
How to deal with taxi scam when on vacation?
Recruiter wants very extensive technical details about all of my previous work
How could a scammer know the apps on my phone / iTunes account?
Why is Sublime Text 3.2 highlighting commas after values that start with “for” in Python dictionaries?
Python in command line runs the wrong version?Find symbolic link created for Sublime text 2 to replace with Sublime Text 3Syntax highlighting for sql files on sublime textSublime Text 3 - Quick Add/Find Match behaviorCan't start Sublime Text with gksuSublime Text: Why regex in syntax highlighting does not work?In Sublime Text, for syntax-specific preferences, how do you enable increase/decrease font size with CTRL+Mousewheelyml file syntax highlighting with Sublime TextSublime Text 3 Automatically adds Javascript to Ignored PackagesWhy is Sublime Text 3 displaying a font size that is not in the settings?
In the most recent version of Sublime Text (3.2 Build 3200), I have encountered what I think is a syntax highlighting error when writing in Python. Whenever I create a dictionary that has a key/value pair where the variable that represents the value starts with "for", the comma at the end of the line and all subsequent lines in the dictionary is highlighted pink. For instance:
{
"test": fordgtths,
}
In my editor, the comma in the above text is highlighted pink. When I change the variable so that it does not start with "for", the highlighting error goes away. Is this in fact an error, or is there something obvious I'm missing? Is there a way to fix it, or do I just need to wait for a patch?
python sublime-text-3 sublime-text python3 syntax
New contributor
add a comment |
In the most recent version of Sublime Text (3.2 Build 3200), I have encountered what I think is a syntax highlighting error when writing in Python. Whenever I create a dictionary that has a key/value pair where the variable that represents the value starts with "for", the comma at the end of the line and all subsequent lines in the dictionary is highlighted pink. For instance:
{
"test": fordgtths,
}
In my editor, the comma in the above text is highlighted pink. When I change the variable so that it does not start with "for", the highlighting error goes away. Is this in fact an error, or is there something obvious I'm missing? Is there a way to fix it, or do I just need to wait for a patch?
python sublime-text-3 sublime-text python3 syntax
New contributor
add a comment |
In the most recent version of Sublime Text (3.2 Build 3200), I have encountered what I think is a syntax highlighting error when writing in Python. Whenever I create a dictionary that has a key/value pair where the variable that represents the value starts with "for", the comma at the end of the line and all subsequent lines in the dictionary is highlighted pink. For instance:
{
"test": fordgtths,
}
In my editor, the comma in the above text is highlighted pink. When I change the variable so that it does not start with "for", the highlighting error goes away. Is this in fact an error, or is there something obvious I'm missing? Is there a way to fix it, or do I just need to wait for a patch?
python sublime-text-3 sublime-text python3 syntax
New contributor
In the most recent version of Sublime Text (3.2 Build 3200), I have encountered what I think is a syntax highlighting error when writing in Python. Whenever I create a dictionary that has a key/value pair where the variable that represents the value starts with "for", the comma at the end of the line and all subsequent lines in the dictionary is highlighted pink. For instance:
{
"test": fordgtths,
}
In my editor, the comma in the above text is highlighted pink. When I change the variable so that it does not start with "for", the highlighting error goes away. Is this in fact an error, or is there something obvious I'm missing? Is there a way to fix it, or do I just need to wait for a patch?
python sublime-text-3 sublime-text python3 syntax
python sublime-text-3 sublime-text python3 syntax
New contributor
New contributor
New contributor
asked 5 mins ago
kloddantkloddant
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
kloddant is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1414479%2fwhy-is-sublime-text-3-2-highlighting-commas-after-values-that-start-with-for-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
kloddant is a new contributor. Be nice, and check out our Code of Conduct.
kloddant is a new contributor. Be nice, and check out our Code of Conduct.
kloddant is a new contributor. Be nice, and check out our Code of Conduct.
kloddant is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1414479%2fwhy-is-sublime-text-3-2-highlighting-commas-after-values-that-start-with-for-i%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown