Comments (15)
This is the deliberate result of changes to the consensus on scope naming. In the guidelines, storage.type
is used for type names in C-style declarations like int foo;
. Since then, storage.type
has generally been used for non-type variable declaration keywords like const
. After much discussion, the community decided to reserve storage.type
for types and use keyword.declaration
for other declaratory keywords.
If you prefer the old behavior, you can modify your color scheme to highlight keyword.declaration
the same as storage.type
.
from babel-sublime.
from babel-sublime.
Awesome, thanks!
Simple fix for my Monokai Phoenix.tmTheme
and voila! Here is my previous beloved color scheme 🚀
What i was need:
<dict>
<key>name</key>
<string>keyword.declaration</string>
<key>scope</key>
<string>keyword.declaration</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
PS:
more info for customization here:
https://www.sublimetext.com/docs/scope_naming.html#keyword
https://www.sublimetext.com/docs/scope_naming.html#storage
from babel-sublime.
Looks like a bug in arrow function return type argument handling in Flow. Can reproduce.
from babel-sublime.
Should be fixed in v11.0.1. Thanks for the report.
from babel-sublime.
v11.0.1 installed. Not working yet.
from babel-sublime.
Can you paste the errant code as text?
from babel-sublime.
const ItemLookupScreen = (props: any): React.Node => {
const data = useContext(DataContext);
const navigation = useNavigation();
const {
request,
loading,
error,
result: apiResult,
} = useApiAuth(data.apiConfig, 'Items');
const { setParam, params, ...paginated } = usePaginated(Initial, apiResult);
const [textFilter, setTextFilter] = useState('');
useEffect(() => {
setParam({ filtroTexto: textFilter });
}, [setParam, textFilter]);
const seleccionar = (item: ItemDTO) => {
navigation.navigate('EditarItem', {
item,
});
};
useEffect(() => {
request(params);
}, [request, params]);
return null;
}
from babel-sublime.
v11.0.2 is out with a couple more Flow fixes. Please let me know if this fixes it.
from babel-sublime.
Hello friends,
I'm running the latest version (v11.0.2) and the syntax highlight is still broken for me:
from babel-sublime.
Can you post the complete text of the file? Or a complete working example?
from babel-sublime.
@darve I can't reproduce. Since highlighting is messed up at the beginning of that excerpt, it probably means that the error occurs in other code before the excerpt. Without seeing more of the code, I can't troubleshoot it.
from babel-sublime.
@darve Is this still broken, or did it turn out to be something else?
from babel-sublime.
Hi @Thom1729
I just found that last 2 versions also changed the color of reserved words
like const / let / function
Before
from babel-sublime.
It would appear it is working as intended then, because I have the same issue as @maullerz... I just assumed it was doing that because something was broken because it looks mighty strange!
from babel-sublime.
Related Issues (20)
- Babel issue HOT 1
- Inline comments breaking if comment begins with @ symbol HOT 5
- Object keys highlighting slightly incorrect in recent release HOT 5
- Question on how to short-circuit on ``` for fenced code blocks in Markdown HOT 5
- Sublime 4 Crashing HOT 4
- Possible highlighting error using a nested ternary HOT 3
- Highlighting error not using parentheses inside an if condition HOT 7
- Error loading syntax file: 'Packages/Babel/JavaScript (Babel).sublime-syntax' HOT 18
- ST4 Autocomplete does not consider state variables defined in a map HOT 1
- Missing Babel option in syntax selector. HOT 2
- Highlighting of `filter` in `styled-components` seems to break— HOT 3
- css Styled Component helper utility improperly highlighted HOT 3
- Functions with parameters on multiple lines are not highlighted properly. HOT 1
- JS #myPrivateClassMethod() breaks syntax highlighting HOT 6
- Object keys are now red instead of intended yellow on Monokai HOT 2
- Sublime 4149 generates "Error loading syntax file[...]: no such target" pop-up for "JavaScript (Babel)" HOT 3
- Interface in extends class is not well Colored HOT 4
- Object literal property has incorrect color in Sublime 4169
- support html`<b>babel</b>` html syntax in templates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-sublime.